Hello everyone
I am trying to fetch info from Sales invoice to Payment request in order to create a printable payment request to send to our customers.
#What I want to do:
→ fetch customers address (address_display)which is selected on invoice. Display that address on the payment request form.
#What I did:
- added field to payment request doctype name: address_display type read only.
- added a custom script on payment request:
frappe.ui.form.on(‘Payment Request’, {
refresh(frm) {
cur_frm.add_fetch(‘reference_name’, ‘address_display’, ‘address_display’);
}
})
What am I missing?
Thank you so much for any inputs!
luju