mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 12:42:36 +01:00
Fix for task report duration formatting
This commit is contained in:
parent
723266762e
commit
0885253f86
@ -66,8 +66,12 @@ class ExportReportResults extends Job
|
||||
foreach ($each as $dimension => $val) {
|
||||
$tmp = [];
|
||||
$tmp[] = Utils::getFromCache($currencyId, 'currencies')->name . (($dimension) ? ' - ' . $dimension : '');
|
||||
foreach ($val as $id => $field) {
|
||||
$tmp[] = Utils::formatMoney($field, $currencyId);
|
||||
foreach ($val as $field => $value) {
|
||||
if ($field == 'duration') {
|
||||
$tmp[] = Utils::formatTime($value);
|
||||
} else {
|
||||
$tmp[] = Utils::formatMoney($value, $currencyId);
|
||||
}
|
||||
}
|
||||
$summary[] = $tmp;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user