1
0
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:
Hillel Coren 2017-03-20 12:23:56 +02:00
parent 653fb6357a
commit 59dd3d8982

View File

@ -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;