mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 02:34:31 -04:00
Fix ExportReportResults (#3506)
Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
This commit is contained in:
parent
bfd13719c9
commit
5f5a1a6740
@ -65,7 +65,17 @@ class ExportReportResults extends Job
|
||||
foreach ($totals as $currencyId => $each) {
|
||||
foreach ($each as $dimension => $val) {
|
||||
$tmp = [];
|
||||
$tmp[] = Utils::getFromCache($currencyId, 'currencies')->name . (($dimension) ? ' - ' . $dimension : '');
|
||||
|
||||
$currency = Utils::getFromCache($currencyId, 'currencies');
|
||||
if (!$currency) {
|
||||
$name = $currencyId;
|
||||
$account = $this->user->account->first();
|
||||
$currencyId = $account->currency_id;
|
||||
} else {
|
||||
$name = $currency->name;
|
||||
}
|
||||
|
||||
$tmp[] = $dimension ? $name . ' - ' . $dimension : $name;
|
||||
foreach ($val as $field => $value) {
|
||||
if ($field == 'duration') {
|
||||
$tmp[] = Utils::formatTime($value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user