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"),
|
||||
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
|
||||
if not args.get("price_list_currency"):
|
||||
throw(_("Price List Currency not selected"))
|
||||
|
Loading…
Reference in New Issue
Block a user