[Question] code that changes outstanding amount of customer on sales order submit

When a sales order is submitted, i.e. status becomes ‘To Deliver and Bill’ the outstanding amount of that customer changes. Question is which function of file does this change? i.e. On sales order submit, update outstanding amount of customer. Any pointers would help!

Ashish-greycube im trying to explain the same exactly problem.

Please join the conversation here : Proper Sale Cycle + Problem with them

Thank you.

@teamzf please refer customer credit balance report. It will reflect correct amount. When we do payment against sales order a GL entry gets done. Credit balance report gives outstanding amount which is summation of GL entry + outstanding sales order + outstanding delivery notes.