Hi
I am experiencing a critical accounting issue when voiding (reversing) an AP Invoice. The problem occurs when the invoice contains two different charges that are linked to two different tax categories, but both categories share the same percentage rate.
When the document is voided, the system generates incorrect accounting. It seems to take the first tax line (e.g., "Service Tax") and duplicates it, while completely ignoring the second tax line (e.g., "Goods Tax").
Steps to Reproduce:
Setup Tax Categories: Create two different Tax Categories:
Category 1: "Service Tax" (with a 15% tax rate).
Category 2: "Goods Tax" (also with a 15% tax rate).
Setup Charges: Create two Charges:
Charge 1: "Service Charge", assign it to the "Service Tax 15%" category.
Charge 2: "Goods Charge", assign it to the "Goods Tax 15%" category.
Create AP Invoice: Create a new AP Invoice (CxP document).
Add Lines: Add two lines to the invoice:
Line 1: Select the "Service Charge".
Line 2: Select the "Goods Charge".
Post Invoice: Complete and post the document.
Observation: At this stage, the accounting is generated correctly. Each line correctly posts to its corresponding tax account (Service Tax and Goods Tax).
Void Document: Void (reverse) the posted invoice.
Expected Result: The reversal document should generate accounting entries that are a perfect inverse of the original posting, correctly reversing both the "Service Tax" line and the "Goods Tax" line.
Actual Result (The Bug): The system generates a flawed accounting entry for the reversal. It incorrectly takes the first tax line (Service Tax 15%) and duplicates it. It completely ignores the second tax line (Goods Tax 15%). This leads to an incorrect and unbalanced GL entry.
I am attaching screenshots that show the setup of the tax categories, the charges, the original (correct) posting, and the incorrect accounting generated by the voiding process.