minor syntax fix

This commit is contained in:
Nabin Hait 2017-05-06 13:23:12 +05:30
parent 120ee275cc
commit 17179ee83a

View File

@ -500,7 +500,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
},
get_exchange_rate: function(transaction_date, from_currency, to_currency, callback) {
if !(transaction_date && from_currency && to_currency) return;
if (!transaction_date || !from_currency || !to_currency) return;
return frappe.call({
method: "erpnext.setup.utils.get_exchange_rate",
args: {