mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04: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) {
|
foreach ($each as $dimension => $val) {
|
||||||
$tmp = [];
|
$tmp = [];
|
||||||
$tmp[] = Utils::getFromCache($currencyId, 'currencies')->name . (($dimension) ? ' - ' . $dimension : '');
|
$tmp[] = Utils::getFromCache($currencyId, 'currencies')->name . (($dimension) ? ' - ' . $dimension : '');
|
||||||
foreach ($val as $id => $field) {
|
foreach ($val as $field => $value) {
|
||||||
$tmp[] = Utils::formatMoney($field, $currencyId);
|
if ($field == 'duration') {
|
||||||
|
$tmp[] = Utils::formatTime($value);
|
||||||
|
} else {
|
||||||
|
$tmp[] = Utils::formatMoney($value, $currencyId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$summary[] = $tmp;
|
$summary[] = $tmp;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user