From 63de0d86cae9e9817c30dbc916af0c8c276680ac Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 20 Jan 2020 21:53:47 +1100 Subject: [PATCH] Bug fixes (#3231) --- app/Console/Commands/CreateTestData.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/CreateTestData.php b/app/Console/Commands/CreateTestData.php index 086c842bb173..9bc5bacfb0a6 100644 --- a/app/Console/Commands/CreateTestData.php +++ b/app/Console/Commands/CreateTestData.php @@ -471,7 +471,7 @@ class CreateTestData extends Command { $item = InvoiceItemFactory::create(); $item->quantity = 1; - //$item->cost =10; + //$item->cost = 10; if (rand(0, 1)) { $item->tax_name1 = 'GST'; @@ -490,7 +490,7 @@ class CreateTestData extends Command $product = Product::all()->random(); - $item->cost = $product->cost; + $item->cost = (float)$product->cost; $item->product_key = $product->product_key; $item->notes = $product->notes; $item->custom_value1 = $product->custom_value1;