many fixes to print

This commit is contained in:
Rushabh Mehta
2014-07-21 18:25:45 +05:30
committed by Anand Doshi
parent d82352eacc
commit 5b51cc86a9
38 changed files with 480 additions and 924 deletions

View File

@@ -11,10 +11,11 @@ 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",
}
if hasattr(self, "fname"):
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()