mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Bug fixes (#3231)
This commit is contained in:
parent
db558acf70
commit
63de0d86ca
@ -471,7 +471,7 @@ class CreateTestData extends Command
|
|||||||
{
|
{
|
||||||
$item = InvoiceItemFactory::create();
|
$item = InvoiceItemFactory::create();
|
||||||
$item->quantity = 1;
|
$item->quantity = 1;
|
||||||
//$item->cost =10;
|
//$item->cost = 10;
|
||||||
|
|
||||||
if (rand(0, 1)) {
|
if (rand(0, 1)) {
|
||||||
$item->tax_name1 = 'GST';
|
$item->tax_name1 = 'GST';
|
||||||
@ -490,7 +490,7 @@ class CreateTestData extends Command
|
|||||||
|
|
||||||
$product = Product::all()->random();
|
$product = Product::all()->random();
|
||||||
|
|
||||||
$item->cost = $product->cost;
|
$item->cost = (float)$product->cost;
|
||||||
$item->product_key = $product->product_key;
|
$item->product_key = $product->product_key;
|
||||||
$item->notes = $product->notes;
|
$item->notes = $product->notes;
|
||||||
$item->custom_value1 = $product->custom_value1;
|
$item->custom_value1 = $product->custom_value1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user