Fix in testcases

This commit is contained in:
Nabin Hait
2014-01-23 16:45:22 +05:30
parent 5ae6a61c4d
commit 4ba95d0b7a
3 changed files with 11 additions and 2 deletions

View File

@@ -134,7 +134,8 @@ class AccountsController(TransactionBase):
def calculate_taxes_and_totals(self):
self.discount_amount_applied = False
self._calculate_taxes_and_totals()
if self.meta.get_field(self.doc.doctype, "discount_amount"):
if self.meta.get_field("discount_amount"):
self.apply_discount_amount()
def _calculate_taxes_and_totals(self):