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:
parent
9fa05a7e5a
commit
a895ffd1c5
@ -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 ?: '',
|
||||
|
Loading…
Reference in New Issue
Block a user