In my company there is a policy that credit note will be allocated to another invoice. This is the full scenario.
- Customer buy and receive sales invoice
- Customer wants to return some goods so credit note is released
- Previously credit note issued will be allocated to another sales invoice (same with advance payment allocation)
This scenario also aplied in debit note.
How can I do this in ERPNext ?