mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
fix: fallback to default selling price list only in selling transactions (#49705)
This commit is contained in:
@@ -118,8 +118,10 @@ def get_item_details(
|
|||||||
|
|
||||||
out.update(get_price_list_rate(ctx, item))
|
out.update(get_price_list_rate(ctx, item))
|
||||||
|
|
||||||
if not out.price_list_rate and frappe.get_single_value(
|
if (
|
||||||
"Selling Settings", "fallback_to_default_price_list"
|
not out.price_list_rate
|
||||||
|
and ctx.transaction_type == "selling"
|
||||||
|
and frappe.get_single_value("Selling Settings", "fallback_to_default_price_list")
|
||||||
):
|
):
|
||||||
fallback_args = ctx.copy()
|
fallback_args = ctx.copy()
|
||||||
fallback_args.price_list = frappe.get_single_value("Selling Settings", "selling_price_list")
|
fallback_args.price_list = frappe.get_single_value("Selling Settings", "selling_price_list")
|
||||||
|
|||||||
Reference in New Issue
Block a user