I have created a custom field in the “Sales Invoice Advance” Child Table in Sales Invoice.
Custom Field Label: Mode of Payment.
Custom Field Type: Link
Custom Fieldname: mode_of_payment
My requirement is when I click on “get advance payment” button which is available in the Advance Payment Section, it should fetch the value of Mode of Payment in the “Sales Invoice Advance” table from the payment entry linked to it. How can I achieve this. I have tried this with the below Custom Script. Added this script in the Sales Invoice Doctype
I had tried that earlier, but the value gets displayed only after I save the document. I want this to get fetched soon after I click the “get advance payment” button.