Fixes for product migration

This commit is contained in:
David Bomba 2021-05-18 07:31:09 +10:00
parent f721cdbe64
commit 71d047dd53

View File

@ -399,7 +399,7 @@ info("get company");
'product_key' => $product->product_key ?: '',
'notes' => $product->notes ?: '',
'price' => $product->cost ?: 0,
'cost' => 0,
'cost' => $product->cost ?: 0,
'quantity' => $product->qty ?: 0,
'tax_name1' => $product->tax_name1,
'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();
$transformed = [];
foreach ($account_gateways as $account_gateway) {