diff --git a/database/seeders/CompaniesTableSeeder.php b/database/seeders/CompaniesTableSeeder.php
index 22990fd2..da6c1061 100644
--- a/database/seeders/CompaniesTableSeeder.php
+++ b/database/seeders/CompaniesTableSeeder.php
@@ -172,49 +172,49 @@ class CompaniesTableSeeder extends Seeder
}
- if(true){
- $companies = OldCompany::all();
-
- foreach($companies as $company){
-
- $marking = explode("CIEF/", $company->marking);
-
- if(count($marking) < 2){
- continue;
- }
-
- $marking = str_replace(' ', '', str_replace('/', '', $marking[1]));
-
-
- /** @var Company $newCompany */
- $newCompany = $this->createCompanyProcessor->execute($company->name, CompanyType::COMPANY_BUSINESS, ApprovalStatus::PENDING_SUBMISSION);
-
- $this->updatesCompanyStatus->execute($newCompany, ApprovalStatus::APPROVED);
-
- /** @var CompanyModule $companyModule */
- $companyModule = $this->createCompanyModuleProcessor->execute($newCompany, BusinessType::IMPORTER);
-
- $connectionObject = new CompanyConnectionObject($companyModule, 'CIEF', $marking);
-
- $connection = $this->createsCompanyConnection->execute($connectionObject);
- $this->approvesCompanyConnection->execute($connection);
-
- $i = 0;
- foreach($company->addresses as $address){
- $this->createAddressFromOldAddressProcessor->execute($address, $companyModule);
- $contact = preg_replace("/[^0-9.]/", "", $address->contact);
- if($contact){
- $i++;
- if($i === 1) {
- $contactObject = new ContactObject('', $contact, $company->email, '',);
- $this->createContactProcessor->execute($contactObject, $newCompany);
- }
- }
-
-
- }
- }
- }
+// if(true){
+// $companies = OldCompany::all();
+//
+// foreach($companies as $company){
+//
+// $marking = explode("CIEF/", $company->marking);
+//
+// if(count($marking) < 2){
+// continue;
+// }
+//
+// $marking = str_replace(' ', '', str_replace('/', '', $marking[1]));
+//
+//
+// /** @var Company $newCompany */
+// $newCompany = $this->createCompanyProcessor->execute($company->name, CompanyType::COMPANY_BUSINESS, ApprovalStatus::PENDING_SUBMISSION);
+//
+// $this->updatesCompanyStatus->execute($newCompany, ApprovalStatus::APPROVED);
+//
+// /** @var CompanyModule $companyModule */
+// $companyModule = $this->createCompanyModuleProcessor->execute($newCompany, BusinessType::IMPORTER);
+//
+// $connectionObject = new CompanyConnectionObject($companyModule, 'CIEF', $marking);
+//
+// $connection = $this->createsCompanyConnection->execute($connectionObject);
+// $this->approvesCompanyConnection->execute($connection);
+//
+// $i = 0;
+// foreach($company->addresses as $address){
+// $this->createAddressFromOldAddressProcessor->execute($address, $companyModule);
+// $contact = preg_replace("/[^0-9.]/", "", $address->contact);
+// if($contact){
+// $i++;
+// if($i === 1) {
+// $contactObject = new ContactObject('', $contact, $company->email, '',);
+// $this->createContactProcessor->execute($contactObject, $newCompany);
+// }
+// }
+//
+//
+// }
+// }
+// }
}
diff --git a/routes/web.php b/routes/web.php
index dcb0ac54..b0976c5c 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -143,7 +143,7 @@ Route::get('/report', function(){
$total += $cbm;
- echo $container->reference.': '.$cbm.'
';
+ echo $container->reference.': '.$cbm.'
';
}
echo '
total cbm: '. $total;