mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Check for currency id on payment.edit
This commit is contained in:
parent
6df518d8f1
commit
84dd416ed6
@ -309,7 +309,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
self.exchangeCurrencyCode = ko.computed(function() {
|
self.exchangeCurrencyCode = ko.computed(function() {
|
||||||
return self.getCurrency(self.exchange_currency_id()).code;
|
var currency = self.getCurrency(self.exchange_currency_id());
|
||||||
|
return currency ? currency.code : '';
|
||||||
});
|
});
|
||||||
|
|
||||||
self.paymentCurrencyCode = ko.computed(function() {
|
self.paymentCurrencyCode = ko.computed(function() {
|
||||||
@ -319,7 +320,8 @@
|
|||||||
} else {
|
} else {
|
||||||
var currencyId = self.account_currency_id();
|
var currencyId = self.account_currency_id();
|
||||||
}
|
}
|
||||||
return self.getCurrency(currencyId).code;
|
var currency = self.getCurrency(currencyId);
|
||||||
|
return currency ? currency.code : '';
|
||||||
});
|
});
|
||||||
|
|
||||||
self.enableExchangeRate = ko.computed(function() {
|
self.enableExchangeRate = ko.computed(function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user