cleanup for print format

This commit is contained in:
Rushabh Mehta
2014-07-18 16:39:31 +05:30
committed by Anand Doshi
parent 28804bfb62
commit f84c240d1c
6 changed files with 37 additions and 29 deletions

View File

@@ -10,6 +10,12 @@ from frappe import _, throw
from erpnext.controllers.stock_controller import StockController
class SellingController(StockController):
def __setup__(self):
self.table_print_templates = {
self.fname: "templates/print_formats/includes/item_grid.html",
"other_charges": "templates/print_formats/includes/taxes.html",
}
def validate(self):
super(SellingController, self).validate()
self.validate_max_discount()