Dear Community,
I need your urgent help on how to fetch data/info from childtable field into a field on the parent doctype.
Parent doctype = Sales Invoice
Child table = Sales Taxes and Charges
Test Case:
- I want to fetch $418.68 from Sales Taxes and Charges into the MarkUp Amount custom field in Sales Invoice
- Also, I want to fetch $31.40 from Sales Taxes and Charges into the VAT Amount custom field in Sales Invoice
I have read other suggestions on the Forum but none has worked resolved my issue. The closest I got was this post Fetch the last row of child table and update field in main doc type - Frappe Framework - Frappe Forum. I applied the script suggested by @NCP. Still didn’t work.
Please help. Thank you.