Try ERPNext Buy Support Partners Foundation

Purchase Invoice accounting BUG - serious

If a Purchase Invoice is created that has a grand total of 0, NO General Ledger entries are created. For Sales Invoice same scenario works correctly in that offsetting General Ledger entries ARE created…

To duplicate, create and submit Purchase Invoice with:

  • a line charging 100 for 1 item (needs to have a register as being billed/received)
  • a second line totaling -100 for some other reason to another expense head
  • Purchase Invoice grand total is 0
  • view ledger for this PI, it is blank and search in GL Entry table and no entries

This happens for non-stock items, not tested for stock items with update stock checked.

ERPNext: v12.17.0 (version-12)
Frappe Framework: v12.14.0 (version-12)