From 8ba849184fb76e4a08df06fdfbe310af581c070f Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 12 May 2015 12:50:43 +0530 Subject: [PATCH] Fix taxes and totals in party currency --- erpnext/patches/v5_0/fix_taxes_and_totals_in_party_currency.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/patches/v5_0/fix_taxes_and_totals_in_party_currency.py b/erpnext/patches/v5_0/fix_taxes_and_totals_in_party_currency.py index 38ee2ffeb88..062159b4105 100644 --- a/erpnext/patches/v5_0/fix_taxes_and_totals_in_party_currency.py +++ b/erpnext/patches/v5_0/fix_taxes_and_totals_in_party_currency.py @@ -6,6 +6,9 @@ import frappe from frappe.model.meta import get_field_precision def execute(): + if not frappe.db.sql("""select name from `tabPatch Log` + where patch = 'erpnext.patches.v5_0.taxes_and_totals_in_party_currency'"""): + return selling_doctypes = ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice"] buying_doctypes = ["Supplier Quotation", "Purchase Order", "Purchase Receipt", "Purchase Invoice"]