Fetch last item selling price of selected customer in sales order?

Hi all,

can i fetch last item selling price of selected customer in sales order ?

Do you have a solution for that? or custom script for document?

Thank you in advance for your help.

Best

You will need to create a custom script for this.
Check out: https://erpnext.com/docs/user/manual/en/customize-erpnext/custom-scripts

thank’s Jai_Chavan.
but if not sure . you mean write sql script in custom-scripts? or other function

where i can see example…