Cannot cancel the sales invoice


To experience ERPNext, the client made some transactions on the ERPNext site. However, we need to remove the transactions before a certain date and create opening stock entries and opening balances in order to compare the data from a specific month onward.

I cancelled the payment entries before 1 February 2026. Now when I try to delete the sales invoice, it shows an error. The transactions after this date are still important because I need them to compare the data with the actual report. What should I do now?
Therefore, I cannot delete all the data because the transactions after that date are still required for comparison with the actual report.

Can you share the traceback?

The issue is that the transaction must contain the GSTIN of the company, which can only be obtained from the company’s address, but this information is not present in the transactions. Therefore, invoice cancellation is not possible.

For GST transactions company GSTIN is mandatory.

How was the transaction created? System dosen’t allow transactions withouta GSTIN.