diff --git a/timesheet/inc/class.timesheet_datasource.inc.php b/timesheet/inc/class.timesheet_datasource.inc.php index 61309b9013..a76d345044 100644 --- a/timesheet/inc/class.timesheet_datasource.inc.php +++ b/timesheet/inc/class.timesheet_datasource.inc.php @@ -62,7 +62,7 @@ class timesheet_datasource extends datasource 'pl_id' => $data['pl_id'], 'pe_unitprice' => $data['ts_unitprice'], 'pe_used_quantity' => $data['ts_quantity'], - 'pe_used_budget' => $data['ts_quantity'] * (float)$data['ts_unitprice'], + 'pe_used_budget' => (float)$data['ts_quantity'] * (float)$data['ts_unitprice'], 'pe_completion' => 100, 'cat_id' => $data['cat_id'], );