diff --git a/timesheet/inc/class.timesheet_merge.inc.php b/timesheet/inc/class.timesheet_merge.inc.php index 94a3dc93fb..cf3d53bf56 100644 --- a/timesheet/inc/class.timesheet_merge.inc.php +++ b/timesheet/inc/class.timesheet_merge.inc.php @@ -113,7 +113,8 @@ class timesheet_merge extends bo_merge importexport_export_csv::convert($record, $types, 'timesheet', $selects); $array = $record->get_record_array(); - foreach(array('ts_duration','ts_quantity','ts_unitprice') as $key) + $array['ts_total'] = $array['ts_quantity'] * $array['ts_unitprice']; + foreach(array('ts_duration','ts_quantity','ts_unitprice','ts_total') as $key) { $array[$key] = self::number_format($array[$key],2,$this->mimetype); } @@ -146,7 +147,7 @@ class timesheet_merge extends bo_merge echo '