mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
chore: use get instead of . operator
(cherry picked from commit e54ec4b9b6)
This commit is contained in:
@@ -597,7 +597,9 @@ class calculate_taxes_and_totals(object):
|
|||||||
if not self.doc.apply_discount_on:
|
if not self.doc.apply_discount_on:
|
||||||
frappe.throw(_("Please select Apply Discount On"))
|
frappe.throw(_("Please select Apply Discount On"))
|
||||||
|
|
||||||
if self.doc.apply_discount_on == "Grand Total" and self.doc.is_cash_or_non_trade_discount:
|
if self.doc.apply_discount_on == "Grand Total" and self.doc.get(
|
||||||
|
"is_cash_or_non_trade_discount"
|
||||||
|
):
|
||||||
self.discount_amount_applied = True
|
self.discount_amount_applied = True
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user