Previously, we were running V12.1.6 of ERPNext on another VM
Purchase invoice was booked with a Landed Cost Vouchers (2x) allocated in sum of AED 420.
We installed V12.2.2 to another VM and upon submitting a new landed cost voucher in the new VM it gave the message “Debit and Credit not equal for Purchase Invoice #PINV-01267-1. Difference is 420.0.”
i just recieved a notification of a patch “Release v12.2.3”:
fix: Rounding Adjustment GL entry fix
fix: NULL issue while generating packed item
I don’t know if it will resolve the issue.
By the way it has nothing to do with rounding adjustment, I exported transactions to see if there is anything like rounding difference there was nothing.
So in my opinion unless we get a word from ERPNext team, we cannot be sure what could be the reason of that.
Some trial and error analysis in a test environment would probably help?
edit: A given patch may change the code, a database schema definition, and migrate database data too if required. So yes that might introduce and explain say a data conflict in your case?
The same issue with me, I have created Landed Cost voucher in the past that was everything good then after update tried to cancel it and git this error Debit and Credit not equal for Purchase Invoice ".........". Difference is ".........".
actually that Difference amount is the Additional Cost that we added to Purchase Invoice
If you use the latest version you will know exactly what we are talking about.
If you use the newer version please perform following steps and you will get to know what we are talking about here.
Create a purchase invoice
create a landed cost voucher and allocate it to that purchase invoice
create another landed cost voucher, you will not be able to do that as the system will through this message and you will be stuck. The difference it shows you is exactly the same amount on the landed cost voucher, that was entered first.
you cannot cancel any landed cost voucher neither can you create another one.
All data entered validated through normal process without any loss of its integrity.
When we Submitted Landed Cost voucher for Purchase Invoice that make update in GL entrery for that invoice when I need to cancel that Landed Cost Voucher method not calculate the additional cost in debit so showing that error message