From f55a33890f1167ef2c575c38fcb3c7d1208f9b56 Mon Sep 17 00:00:00 2001 From: Brown-Harry Boma Date: Wed, 18 Oct 2017 06:37:26 +0100 Subject: [PATCH] Set transaction type in pricing rule only if unavailable (#11228) --- erpnext/accounts/doctype/pricing_rule/pricing_rule.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/accounts/doctype/pricing_rule/pricing_rule.py b/erpnext/accounts/doctype/pricing_rule/pricing_rule.py index 57f9f832d03..36ed54d0d24 100644 --- a/erpnext/accounts/doctype/pricing_rule/pricing_rule.py +++ b/erpnext/accounts/doctype/pricing_rule/pricing_rule.py @@ -348,6 +348,7 @@ def apply_internal_priority(pricing_rules, field_set, args): return filtered_rules or pricing_rules def set_transaction_type(args): + if args.transaction_type:return if args.doctype in ("Opportunity", "Quotation", "Sales Order", "Delivery Note", "Sales Invoice"): args.transaction_type = "selling" elif args.doctype in ("Material Request", "Supplier Quotation", "Purchase Order",