Get advance paid function


I am searching the function that execute when I press the button “Get Advances Paid” in purchase invoice

Please I have been in this for a lot of days.

1 Like

Hi Daniel,
in V13, Button is renamed to Get Advances Received, and it calls the set_advances() function
you will find it in erpnext/controllers/

you can use it in your code (sales invoice as an example) as: