I have a data set with invoices raised on different customers and the payments received subsequently. I need to set off the payment received in month X with Invoice raised in month X or Month X-1 and the netted off amount should appear as balance for the invoice. Sample input file and the required out put file is attached.
The logic isn't too clear, how are the instances of Month X and Month X-1 accounted for?
User | Count |
---|---|
19 | |
15 | |
13 | |
9 | |
8 |