map charge to taxes and charges in transactions

This commit is contained in:
Akhilesh Darjee
2014-01-30 13:56:57 +05:30
parent b665d86292
commit 4cdb79941b
7 changed files with 37 additions and 16 deletions

View File

@@ -130,6 +130,10 @@ class AccountsController(TransactionBase):
})
self.doclist.append(tax)
def get_other_charges(self):
self.doclist = self.doc.clear_table(self.doclist, "other_charges")
self.set_taxes("other_charges", "taxes_and_charges")
def calculate_taxes_and_totals(self):
self.discount_amount_applied = False