Trying to allocate a single payment that will then update multiple orders.
Account consists of multiple Orders, so we will then be working with the following information:
Account.ContactPerson
Account.Order.Number
Account.Order.Date
Account.Order.Amount
Account.Order.PaidAmount
Account.Order.OutstandingAmount
Now I will make a Payment to this account, with a Payment.Amount
How do I get AwareIM to update all the Orders with the allocated payment amount from the oldest order date.
For example:
Order1 = 20
Order2 = 10
Order3 = 15
Order4 = 30
Order5 = 10
Payment = 80, meaning order1-4 will be paid up and order5 will have outstanding amount of 5.
Your assistance would be appreciated.