Print Settings for printing taxes with zero amount (#10782)

* Print Settings for printing taxes with zero amount

* added __init__.py file to patch module v8_9
This commit is contained in:
Nabin Hait
2017-09-14 15:17:38 +05:30
committed by Makarand Bauskar
parent bf8e331135
commit 45dce89cae
8 changed files with 31 additions and 9 deletions

View File

@@ -16,6 +16,8 @@ from erpnext.controllers.stock_controller import StockController
class BuyingController(StockController):
def __setup__(self):
if hasattr(self, "taxes"):
self.flags.print_taxes_with_zero_amount = cint(frappe.db.get_single_value("Print Settings",
"print_taxes_with_zero_amount"))
self.print_templates = {
"taxes": "templates/print_formats/includes/taxes.html"
}

View File

@@ -14,6 +14,8 @@ from erpnext.controllers.stock_controller import StockController
class SellingController(StockController):
def __setup__(self):
if hasattr(self, "taxes"):
self.flags.print_taxes_with_zero_amount = cint(frappe.db.get_single_value("Print Settings",
"print_taxes_with_zero_amount"))
self.print_templates = {
"taxes": "templates/print_formats/includes/taxes.html"
}