fix PHP Warning: A non-numeric value encountered in line 77

caused be not set (NULL) unitprice
This commit is contained in:
Ralf Becker 2018-03-15 11:27:45 +01:00
parent 1f2770639c
commit df649f1acc

View File

@ -74,7 +74,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'] * $data['ts_unitprice'],
'pe_used_budget' => $data['ts_quantity'] * (float)$data['ts_unitprice'],
'pe_completion' => 100,
'cat_id' => $data['cat_id'],
);