Merge pull request #5730 from turbo124/master

Fixes for product migration
This commit is contained in:
David Bomba 2021-05-18 07:31:34 +10:00 committed by GitHub
commit 94140c173a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -399,7 +399,7 @@ info("get company");
'product_key' => $product->product_key ?: '', 'product_key' => $product->product_key ?: '',
'notes' => $product->notes ?: '', 'notes' => $product->notes ?: '',
'price' => $product->cost ?: 0, 'price' => $product->cost ?: 0,
'cost' => 0, 'cost' => $product->cost ?: 0,
'quantity' => $product->qty ?: 0, 'quantity' => $product->qty ?: 0,
'tax_name1' => $product->tax_name1, 'tax_name1' => $product->tax_name1,
'tax_name2' => $product->tax_name2, 'tax_name2' => $product->tax_name2,
@ -1331,7 +1331,6 @@ info("translated gateway_type = {$translated_gateway_type}");
$account_gateways = AccountGateway::where('account_id', $this->account->id)->withTrashed()->get(); $account_gateways = AccountGateway::where('account_id', $this->account->id)->withTrashed()->get();
$transformed = []; $transformed = [];
foreach ($account_gateways as $account_gateway) { foreach ($account_gateways as $account_gateway) {