mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
feat: provision to disable get last purchase rate
fix: set_incoming_rate condition
This commit is contained in:
@@ -813,6 +813,9 @@ def get_price_list_rate(args, item_doc, out=None):
|
||||
flt(price_list_rate) * flt(args.plc_conversion_rate) / flt(args.conversion_rate)
|
||||
)
|
||||
|
||||
if frappe.db.get_single_value("Buying Settings", "disable_last_purchase_rate"):
|
||||
return out
|
||||
|
||||
if not out.price_list_rate and args.transaction_type == "buying":
|
||||
from erpnext.stock.doctype.item.item import get_last_purchase_details
|
||||
|
||||
|
||||
Reference in New Issue
Block a user