Merge pull request #14363 from frappe/manassolanki-patch-10
PR to check the current state of Travis
This commit is contained in:
commit
3639b85663
@ -408,6 +408,10 @@ def validate_conversion_rate(args, meta):
|
|||||||
get_field_precision(meta.get_field("conversion_rate"),
|
get_field_precision(meta.get_field("conversion_rate"),
|
||||||
frappe._dict({"fields": args})))
|
frappe._dict({"fields": args})))
|
||||||
|
|
||||||
|
if (not args.plc_conversion_rate
|
||||||
|
and args.price_list_currency==frappe.db.get_value("Price List", args.price_list, "currency")):
|
||||||
|
args.plc_conversion_rate = 1.0
|
||||||
|
|
||||||
# validate price list currency conversion rate
|
# validate price list currency conversion rate
|
||||||
if not args.get("price_list_currency"):
|
if not args.get("price_list_currency"):
|
||||||
throw(_("Price List Currency not selected"))
|
throw(_("Price List Currency not selected"))
|
||||||
|
Loading…
Reference in New Issue
Block a user