mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-25 13:03:02 +00:00
[fixes] Leave Application and Toggle Rounded Totals
This commit is contained in:
@@ -57,6 +57,8 @@ class GlobalDefaults(Document):
|
||||
|
||||
# Make property setters to hide rounded total fields
|
||||
for doctype in ("Quotation", "Sales Order", "Sales Invoice", "Delivery Note"):
|
||||
for fieldname in ("rounded_total", "rounded_total_export"):
|
||||
make_property_setter(doctype, fieldname, "hidden", self.disable_rounded_total, "Check")
|
||||
make_property_setter(doctype, fieldname, "print_hide", self.disable_rounded_total, "Check")
|
||||
make_property_setter(doctype, "rounded_total", "hidden", self.disable_rounded_total, "Check")
|
||||
make_property_setter(doctype, "rounded_total", "print_hide", 1, "Check")
|
||||
|
||||
make_property_setter(doctype, "rounded_total_export", "hidden", self.disable_rounded_total, "Check")
|
||||
make_property_setter(doctype, "rounded_total_export", "print_hide", self.disable_rounded_total, "Check")
|
||||
|
||||
Reference in New Issue
Block a user