mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Fix for product import
This commit is contained in:
parent
653fb6357a
commit
59dd3d8982
@ -68,6 +68,7 @@ class ProductRepository extends BaseRepository
|
||||
$product->product_key = isset($data['product_key']) ? trim($data['product_key']) : '';
|
||||
$product->notes = isset($data['notes']) ? trim($data['notes']) : '';
|
||||
$product->cost = isset($data['cost']) ? Utils::parseFloat($data['cost']) : 0;
|
||||
$product->qty = isset($data['qty']) ? Utils::parseFloat($data['qty']) : 1;
|
||||
$product->save();
|
||||
|
||||
return $product;
|
||||
|
Loading…
Reference in New Issue
Block a user