Reload sales taxes and charges in patch

This commit is contained in:
Anand Doshi 2014-06-10 14:52:49 +05:30
parent 38d5407ea1
commit 82029be6f9

View File

@ -5,6 +5,7 @@ from __future__ import unicode_literals
import frappe
def execute():
frappe.reload_doc("accounts", "doctype", "sales_taxes_and_charges")
docs_with_discount_amount = frappe._dict()
for dt in ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice"]:
records = frappe.db.sql_list("""select name from `tab%s`