Frappe ERPNext: Custom grand total in Sales Invoice not decreasing on child table row deletions
I'm customizing a Sales Invoice in Frappe/ERPNext to calculate a discounted grand total (15% off qty * rate per item). The total updates correctly on add/edit but doesn't decrease when deleting rows from the 'items' child table. What I've tried: Client-side JS: Triggers on qty, rate, items_add, items_remove, refresh, onload, after_save. Recalculates and refreshes fields. Added a custom "Recalculate & Save" button. Server-side Python: Hook on before_save/before_submit to recalc and persist via frappe.db.set_value. Added debug frappe.msgprint. Custom fields: custom_g_total (Currency, in Sales In
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.