From 71d047dd53718110ba8a6a69e8ffcf3a25775f38 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 18 May 2021 07:31:09 +1000 Subject: [PATCH] Fixes for product migration --- app/Traits/GenerateMigrationResources.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Traits/GenerateMigrationResources.php b/app/Traits/GenerateMigrationResources.php index 543e0793f564..22ce9fda4464 100644 --- a/app/Traits/GenerateMigrationResources.php +++ b/app/Traits/GenerateMigrationResources.php @@ -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) {