mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
Set transaction type in pricing rule only if unavailable (#11229)
* Set transaction type in pricing rule only if unavailable * Update pricing_rule.py
This commit is contained in:
committed by
Nabin Hait
parent
84f7ba8699
commit
11e964d442
@@ -348,6 +348,8 @@ def apply_internal_priority(pricing_rules, field_set, args):
|
|||||||
return filtered_rules or pricing_rules
|
return filtered_rules or pricing_rules
|
||||||
|
|
||||||
def set_transaction_type(args):
|
def set_transaction_type(args):
|
||||||
|
if args.transaction_type:
|
||||||
|
return
|
||||||
if args.doctype in ("Opportunity", "Quotation", "Sales Order", "Delivery Note", "Sales Invoice"):
|
if args.doctype in ("Opportunity", "Quotation", "Sales Order", "Delivery Note", "Sales Invoice"):
|
||||||
args.transaction_type = "selling"
|
args.transaction_type = "selling"
|
||||||
elif args.doctype in ("Material Request", "Supplier Quotation", "Purchase Order",
|
elif args.doctype in ("Material Request", "Supplier Quotation", "Purchase Order",
|
||||||
|
|||||||
Reference in New Issue
Block a user