mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-07 10:01:47 -04:00
Handle currency not set
This commit is contained in:
parent
fb4806dab7
commit
581ae1baa6
@ -857,7 +857,7 @@ class PaymentService extends BaseService
|
|||||||
function ($model) {
|
function ($model) {
|
||||||
$max_refund = number_format($model->amount - $model->refunded, 2);
|
$max_refund = number_format($model->amount - $model->refunded, 2);
|
||||||
$formatted = Utils::formatMoney($max_refund, $model->currency_id, $model->country_id);
|
$formatted = Utils::formatMoney($max_refund, $model->currency_id, $model->country_id);
|
||||||
$symbol = Utils::getFromCache($model->currency_id, 'currencies')->symbol;
|
$symbol = Utils::getFromCache($model->currency_id ? $model->currency_id : 1, 'currencies')->symbol ;
|
||||||
return "javascript:showRefundModal({$model->public_id}, '{$max_refund}', '{$formatted}', '{$symbol}')";
|
return "javascript:showRefundModal({$model->public_id}, '{$max_refund}', '{$formatted}', '{$symbol}')";
|
||||||
},
|
},
|
||||||
function ($model) {
|
function ($model) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user