mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-06 06:58:27 +00:00
[fix] Issue fixed in C-Form related to field renaming
This commit is contained in:
@@ -54,7 +54,7 @@ class CForm(Document):
|
|||||||
frappe.throw(_("Please enter atleast 1 invoice in the table"))
|
frappe.throw(_("Please enter atleast 1 invoice in the table"))
|
||||||
|
|
||||||
def set_total_invoiced_amount(self):
|
def set_total_invoiced_amount(self):
|
||||||
total = sum([flt(d.base_grand_total) for d in self.get('invoices')])
|
total = sum([flt(d.grand_total) for d in self.get('invoices')])
|
||||||
frappe.db.set(self, 'total_invoiced_amount', total)
|
frappe.db.set(self, 'total_invoiced_amount', total)
|
||||||
|
|
||||||
def get_invoice_details(self, invoice_no):
|
def get_invoice_details(self, invoice_no):
|
||||||
|
|||||||
Reference in New Issue
Block a user