mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +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):
|
if isinstance(args, str):
|
||||||
args = json.loads(args)
|
args = json.loads(args)
|
||||||
|
|
||||||
voucher_no = args.get("voucher_no") or args.get("name")
|
|
||||||
|
|
||||||
in_rate = None
|
in_rate = None
|
||||||
if (args.get("serial_no") or "").strip():
|
if (args.get("serial_no") or "").strip():
|
||||||
in_rate = get_avg_purchase_rate(args.get("serial_no"))
|
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")
|
in_rate = previous_sle.get("valuation_rate")
|
||||||
|
|
||||||
if in_rate is None:
|
if in_rate is None:
|
||||||
|
voucher_no = args.get("voucher_no") or args.get("name")
|
||||||
in_rate = get_valuation_rate(
|
in_rate = get_valuation_rate(
|
||||||
args.get("item_code"),
|
args.get("item_code"),
|
||||||
args.get("warehouse"),
|
args.get("warehouse"),
|
||||||
|
|||||||
Reference in New Issue
Block a user