commit
da975f5a76
@ -6,7 +6,7 @@ import frappe
|
|||||||
from frappe.modules import scrub, get_doctype_module
|
from frappe.modules import scrub, get_doctype_module
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
for dt in ["Quotation", "Sales Order", "Delivery Note", "Sales invoice"]:
|
for dt in ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice"]:
|
||||||
frappe.reload_doc(get_doctype_module(dt), "doctype", scrub(dt))
|
frappe.reload_doc(get_doctype_module(dt), "doctype", scrub(dt))
|
||||||
frappe.db.sql("""update `tab{0}` set base_discount_amount=discount_amount,
|
frappe.db.sql("""update `tab{0}` set base_discount_amount=discount_amount,
|
||||||
discount_amount=discount_amount/conversion_rate""".format(dt))
|
discount_amount=discount_amount/conversion_rate""".format(dt))
|
||||||
|
Loading…
Reference in New Issue
Block a user