Merge pull request #14363 from frappe/manassolanki-patch-10

PR to check the current state of Travis
This commit is contained in:
Manas Solanki 2018-06-11 11:40:40 +05:30 committed by GitHub
commit 3639b85663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"))