Dear all, I have the folllowing requirement.
When running the automatic clearing, a clearing document should be created per invoice/ debit item. Currently what is happening is for a contract object, all invoices and open credits are set off in a single clearing document.
Current behaviour:
a) Account balance:
Invoice 1 : $100
Invoice 2: $300
Open credit: $1000
b) Run the automatic clearing
Clearing document 01 posted with 3 subitems
Subitem 1 : $100
Subitem 2: $300
Subitem 3: -$400
Open credit of $600 posted
Current requirement:
a) Account balance:
Invoice 1 : $100
Invoice 2: $300
Open credit: $1000
b) Run the automatic clearing
Clearing document 01 posted with 2 subitems
Subitem 1 : $100
Subitem 2: -$100
Clearing document 02 posted with 2 subitems
Subitem 1 : $300
Subitem 2: -$300
Open credit of $600 posted
Can anyone advise on how to achieve this(note that event 0591 cannot be used to achieve the above)?