1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Add float casts in transformer

This commit is contained in:
Hillel Coren 2018-05-20 23:10:55 +03:00
parent 9fa05a7e5a
commit a895ffd1c5

View File

@ -24,8 +24,8 @@ class ProductTransformer extends EntityTransformer
'id' => (int) $product->public_id,
'product_key' => $product->product_key,
'notes' => $product->notes,
'cost' => $product->cost,
'qty' => $product->qty,
'cost' => (float) $product->cost,
'qty' => (float) $product->qty,
'tax_name1' => $product->tax_name1 ?: '',
'tax_rate1' => (float) $product->tax_rate1,
'tax_name2' => $product->tax_name2 ?: '',