Apply default taxes on loading of document

This commit is contained in:
Nabin Hait
2015-05-12 15:07:02 +05:30
parent 23d6eb7e5c
commit ffc7f3fef6
6 changed files with 43 additions and 22 deletions

View File

@@ -256,7 +256,7 @@ def set_taxes(quotation, cart_settings, billing_territory):
quotation.set("taxes", [])
# append taxes
quotation.append_taxes_from_master("taxes", "taxes_and_charges")
quotation.append_taxes_from_master()
def get_lead_or_customer():
customer = frappe.db.get_value("Contact", {"email_id": frappe.session.user}, "customer")