mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-01 12:38:27 +00:00
fix: rate reset to zero
(cherry picked from commit6821baa850) (cherry picked from commit4636ef0a29)
This commit is contained in:
committed by
Mergify
parent
2b80cb99be
commit
1ed9133bb6
@@ -822,6 +822,9 @@ def get_price_list_rate(args, item_doc, out=None):
|
|||||||
if args.price_list and args.rate:
|
if args.price_list and args.rate:
|
||||||
insert_item_price(args)
|
insert_item_price(args)
|
||||||
|
|
||||||
|
if not price_list_rate:
|
||||||
|
return out
|
||||||
|
|
||||||
out.price_list_rate = (
|
out.price_list_rate = (
|
||||||
flt(price_list_rate) * flt(args.plc_conversion_rate) / flt(args.conversion_rate)
|
flt(price_list_rate) * flt(args.plc_conversion_rate) / flt(args.conversion_rate)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user