[Breaking Change v13] Introducing Immutable Ledgers in ERPNext

The new GLE or SLE created by the cancellation entry is dated on the date of cancellation.
But this new entry DOES NOT have any “originating” journal entry or stock entry supporting it.

Also, the first GLE or SLE generated by the journal entry no longer has the originating journal entry to support it is it got cancelled.

This has the effect of “inventing” ghost GLE and SLE (Ledger entries) without any journal entry supporting ledger entries.

To correct way to do this is, in order to cancel Stock Entry (Journal), we MUST NOT cancel the original entry. Instead, we must create a reversing Stock Entry dated today for the stock we want to cancel. This way, ALL supporting journal entries are maintained.

So, with immutable ledgers, we can say NO CANCELLATIONs are allowed with stock entries. All stake holders must be super careful about dates. A single manual error in the dates can mess up the entire Inventory system.