Canceling an invoice will block an invoice no. It can be free up later on. It will affect the customer current balance and current stock simultaneously (if challan made previously).