Fix taxes and totals in party currency
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 38ee2ff..062159b 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 @@
 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"]