Set transaction type in pricing rule only if unavailable (#11228)

This commit is contained in:
Brown-Harry Boma
2017-10-18 06:37:26 +01:00
committed by Nabin Hait
parent ec992df81a
commit f55a33890f

View File

@@ -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",