mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fix for invoice report totals
This commit is contained in:
parent
1d3efda4ea
commit
13fbb880e1
@ -398,9 +398,7 @@ class ReportController extends BaseController
|
|||||||
$payment ? $account->formatMoney($payment->amount, $client) : '',
|
$payment ? $account->formatMoney($payment->amount, $client) : '',
|
||||||
$payment ? $payment->present()->method : '',
|
$payment ? $payment->present()->method : '',
|
||||||
];
|
];
|
||||||
if ($payment) {
|
$reportTotals = $this->addToTotals($reportTotals, $client->currency_id, 'paid', $payment ? $payment->amount : 0);
|
||||||
$reportTotals = $this->addToTotals($reportTotals, $client->currency_id, 'paid', $payment->amount);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$reportTotals = $this->addToTotals($reportTotals, $client->currency_id, 'amount', $invoice->amount);
|
$reportTotals = $this->addToTotals($reportTotals, $client->currency_id, 'amount', $invoice->amount);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user