Wrong Tax Correction posting at Write Off

Description

1) Posting AP invoice with GST Tax
2) Post partial payment of that invoice leaving some underpayment
3) In payment allocation adding the rest to Write off
The Allocation Posting will make a wrong Tax correction posting because the code does not take SoTrx into account.
21100 Acc Payable Trade D 3
78100 Bad Debts Write off C 3
78100 Bad Debts Write off D -0,2
12610 Tax Credit AR C -0,2
The negative Amount in the Tax Correction is Wrong, it adds to the Bad Debts Write Off instead of reducing it.

Attached you find a patch, which takes SOTrx into account.

KR

Environment

Server with ZK Client and idempiere Test System
Accounting Schema is set to post Discount and Tax Corrections

Assignee

Anton Fildan

Reporter

Anton Fildan

Labels

Tested By

Anton Fildan

Components

Affects versions

Priority

Major
Configure