Add float casts in transformer
This commit is contained in:
parent
9fa05a7e5a
commit
a895ffd1c5
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue