Duplicate
Details
Assignee
UnassignedUnassignedReporter
Chuck BoeckingChuck BoeckingComponents
Affects versions
Priority
Minor
Details
Details
Assignee
Unassigned
UnassignedReporter
Chuck Boecking
Chuck BoeckingComponents
Affects versions
Priority
Created May 23, 2014 at 11:58 PM
Updated January 26, 2025 at 6:18 PM
Resolved January 26, 2025 at 6:18 PM
When creating Payment Selection Lines, it is desirable to be able to pull from different places. This means running the 'Create Lines...' process multiple times. There is an issue with the current code in that it allows the same Invoice to exist on a Payment Selection multiple times.
The attached patch prevents this scenario. Therefore, you can run the 'Create Lines..." process as many times as is needed without the risk of adding the same invoice multiple times.
In the current code, if you add the same Invoice multiple times, you will create a payment for double the amount of the Invoice. The Payment will be flagged as isAllocated=Y and the Invoice will not be flagged as Paid (isPaid=N). When you run aging, the Invoice will show a balance equal to the original balance*(-1). Thus, it is over allocated.