1
0
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:
Hillel Coren 2018-03-22 11:11:56 +02:00
parent 723266762e
commit 0885253f86

View File

@ -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;
}