From 23afe1194425e8a88d9ad4d0f6ea59ef4c37e127 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 20 Nov 2019 22:28:04 +0100 Subject: [PATCH] cleanup and tests added for ci/cd --- Interfaces/GSD/Import/AccountImport.php | 27 ++++++++++++ Interfaces/GSD/Import/ArticleImport.php | 27 ++++++++++++ Interfaces/GSD/Import/BatchPostingImport.php | 27 ++++++++++++ Interfaces/GSD/Import/CostCenterImport.php | 27 ++++++++++++ Interfaces/GSD/Import/CostObjectImport.php | 27 ++++++++++++ Interfaces/GSD/Import/CustomerImport.php | 27 ++++++++++++ Interfaces/GSD/Import/InvoiceImport.php | 27 ++++++++++++ Interfaces/GSD/Import/PostingImport.php | 27 ++++++++++++ Interfaces/GSD/Import/SupplierImport.php | 27 ++++++++++++ Interfaces/GSD/Model/Account.php | 27 ++++++++++++ Interfaces/GSD/Model/BatchPosting.php | 27 ++++++++++++ Interfaces/GSD/Model/GSDAddress.php | 27 ++++++++++++ Interfaces/GSD/Model/GSDArticle.php | 27 ++++++++++++ Interfaces/GSD/Model/GSDCustomer.php | 27 ++++++++++++ Interfaces/GSD/Model/Invoice.php | 27 ++++++++++++ Interfaces/GSD/Model/Posting.php | 27 ++++++++++++ Interfaces/GSD/Model/Segment.php | 27 ++++++++++++ Interfaces/GSD/Model/SegmentType.php | 28 ++++++++++++ Interfaces/GSD/Model/Supplier.php | 27 ++++++++++++ Interfaces/Intrexx/Import.php | 1 - Interfaces/Intrexx/Import/PromotionImport.php | 27 ++++++++++++ Interfaces/Intrexx/Import/SeminarImport.php | 27 ++++++++++++ Interfaces/Intrexx/Import/VisitImport.php | 27 ++++++++++++ Interfaces/Intrexx/Importer.php | 43 +++++++++++++++++++ Interfaces/Intrexx/Model/Promotion.php | 27 ++++++++++++ Interfaces/Intrexx/Model/Seminar.php | 27 ++++++++++++ Interfaces/Intrexx/Model/Visit.php | 27 ++++++++++++ Interfaces/OMS/Importer.php | 8 ++-- 28 files changed, 722 insertions(+), 6 deletions(-) delete mode 100644 Interfaces/Intrexx/Import.php create mode 100644 Interfaces/Intrexx/Importer.php diff --git a/Interfaces/GSD/Import/AccountImport.php b/Interfaces/GSD/Import/AccountImport.php index 8b13789..0dca4cb 100644 --- a/Interfaces/GSD/Import/AccountImport.php +++ b/Interfaces/GSD/Import/AccountImport.php @@ -1 +1,28 @@ +getData('start') ?? 'now'); $end = new \DateTime($request->getData('end') ?? 'now'); - $type = (int) ($request->getData('type') ?? 0); + $type = (int) ($request->getData('type') ?? 0); $source = (int) ($request->getData('source') ?? 0); if ($type === ExchangeType::CUSTOMER) { @@ -136,7 +134,7 @@ final class Importer extends ImporterAbstract public function importAddress(\DateTime $start, \DateTime $end): void { while (($line = \fgetcsv($this->remote)) !== false) { - + var_dump($line); } } @@ -152,7 +150,7 @@ final class Importer extends ImporterAbstract */ public function importCustomer(\DateTime $start, \DateTime $end): void { - $euTIN = CustomerIdTypeMapper::getByType(CustomerIdType::EU_TIN); + $euTIN = CustomerIdTypeMapper::getByType(CustomerIdType::EU_TIN); $gerTIN = CustomerIdTypeMapper::getByType(CustomerIdType::GER_TIN); while (($line = \fgetcsv($this->remote)) !== false) {