Source data in table Inv-Payments:
Inv-Payments
I believe the logic here is to duplicate every row to have a second invoice.
Use the SQL UNION or UNION ALL function and add your logic for Pmt ID, Pmt Amt, inv_balance.
1.4m articles
1.4m replys
5 comments
57.0k users