[fixes] Leave Application and Toggle Rounded Totals

This commit is contained in:
Anand Doshi
2014-07-30 17:00:05 +05:30
parent 5a5b405a18
commit 35cc320e21
3 changed files with 9 additions and 7 deletions

View File

@@ -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")