mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Add float casts in transformer
This commit is contained in:
parent
f1e50caa17
commit
94954aebef
@ -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…
x
Reference in New Issue
Block a user