When creating a sales invoice with the include payment option the system after saving will force a write off amount even though there is nothing to write off below is an example
I have an invoice with the following grand total and outstanding amount
We faced same issue on V12. Fix is go to POS profile and set only 1 default mode of payment. Let the user manually change the mode on sales invoice.
When we had multiple mode of payments set in POS profile and when user made some changes to the payment in sales invoice then system randomly used to pass a write off entry. It used to be 100X of the sales value.
We tried to find the reason but there were no clues anywhere. We only found after observing user while they were passing a sales invoice.
The system actually has a functionality to book the rounding difference so writing it off it is unnecessary but it seems like the logic doesn’t seem to consider this, so definitely is a bug.