mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-28 11:08:32 +00:00
get_incoming_rate_voucher_no_fix
This commit is contained in:
committed by
Devin Slauenwhite
parent
1df3b608ec
commit
bd9655a781
@@ -277,8 +277,6 @@ def get_incoming_rate(args, raise_error_if_no_rate=True):
|
||||
if isinstance(args, str):
|
||||
args = json.loads(args)
|
||||
|
||||
voucher_no = args.get("voucher_no") or args.get("name")
|
||||
|
||||
in_rate = None
|
||||
if (args.get("serial_no") or "").strip():
|
||||
in_rate = get_avg_purchase_rate(args.get("serial_no"))
|
||||
@@ -307,6 +305,7 @@ def get_incoming_rate(args, raise_error_if_no_rate=True):
|
||||
in_rate = previous_sle.get("valuation_rate")
|
||||
|
||||
if in_rate is None:
|
||||
voucher_no = args.get("voucher_no") or args.get("name")
|
||||
in_rate = get_valuation_rate(
|
||||
args.get("item_code"),
|
||||
args.get("warehouse"),
|
||||
|
||||
Reference in New Issue
Block a user