Debit & credit not equal for Purchase Invoice

This error pops up when there is discount on supplier invoices.

The error goes away if I disabled the “Enable Discount Accounting”.

How to fix this error, anything I’ve done wrong? Thanks all.

Hi @maxchock

I have raised this as a bug. # 30697.

You will notice that the “Update stock” button also has an effect !
I believe it is being looked into.