Fixed Currency Exchange error
This commit is contained in:
parent
0c6177dd9a
commit
14920b447c
@ -17,8 +17,5 @@ def validate_conversion_rate(currency, conversion_rate, conversion_rate_label, c
|
|||||||
company_currency = frappe.db.get_value("Company", company, "default_currency")
|
company_currency = frappe.db.get_value("Company", company, "default_currency")
|
||||||
|
|
||||||
if not conversion_rate:
|
if not conversion_rate:
|
||||||
throw(_('%(conversion_rate_label)s is mandatory. Maybe Currency Exchange record is not created for %(from_currency)s to %(to_currency)s') % {
|
throw(_("{0} is mandatory. Maybe Currency Exchange record is not created for {1} to {2}.").format(
|
||||||
"conversion_rate_label": conversion_rate_label,
|
conversion_rate_label, currency, company_currency))
|
||||||
"from_currency": currency,
|
|
||||||
"to_currency": company_currency
|
|
||||||
})
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user