From 0bd61648b01f2fc2fd76e15b3dae7bf7a9c05ce3 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 21 May 2018 22:30:04 +0200 Subject: [PATCH] Remove whitespace --- Controller.php | 26 +++ Interfaces/GSD/Import/AccountImport.php | 1 + Interfaces/GSD/Import/ArticleImport.php | 1 + Interfaces/GSD/Import/BatchPostingImport.php | 1 + Interfaces/GSD/Import/CostCenterImport.php | 1 + Interfaces/GSD/Import/CostObjectImport.php | 1 + Interfaces/GSD/Import/CustomerImport.php | 1 + Interfaces/GSD/Import/InvoiceImport.php | 1 + Interfaces/GSD/Import/PostingImport.php | 1 + Interfaces/GSD/Import/SupplierImport.php | 1 + Interfaces/GSD/Importer.php | 215 ++++++++++++++++++ Interfaces/GSD/Model/Account.php | 1 + Interfaces/GSD/Model/Article.php | 1 + Interfaces/GSD/Model/BatchPosting.php | 1 + Interfaces/GSD/Model/Customer.php | 1 + Interfaces/GSD/Model/GSDCostCenter.php | 201 ++++++++++++++++ Interfaces/GSD/Model/GSDCostCenterMapper.php | 67 ++++++ Interfaces/GSD/Model/GSDCostObject.php | 201 ++++++++++++++++ Interfaces/GSD/Model/GSDCostObjectMapper.php | 67 ++++++ Interfaces/GSD/Model/Invoice.php | 1 + Interfaces/GSD/Model/Posting.php | 1 + Interfaces/GSD/Model/Segment.php | 1 + Interfaces/GSD/Model/SegmentType.php | 1 + Interfaces/GSD/Model/Supplier.php | 1 + Interfaces/GSD/base.sql | 74 ++++++ Interfaces/Intrexx/Import.php | 1 + Interfaces/Intrexx/Import/PromotionImport.php | 1 + Interfaces/Intrexx/Import/SeminarImport.php | 1 + Interfaces/Intrexx/Import/VisitImport.php | 1 + Interfaces/Intrexx/Model/Promotion.php | 1 + Interfaces/Intrexx/Model/Seminar.php | 1 + Interfaces/Intrexx/Model/Visit.php | 1 + Models/ImporterAbstract.php | 58 +++++ Models/InterfaceManager.php | 52 ++++- Theme/Backend/exchange-export-list.tpl.php | 18 +- Theme/Backend/exchange-import-list.tpl.php | 20 +- 36 files changed, 1001 insertions(+), 23 deletions(-) create mode 100644 Interfaces/GSD/Import/AccountImport.php create mode 100644 Interfaces/GSD/Import/ArticleImport.php create mode 100644 Interfaces/GSD/Import/BatchPostingImport.php create mode 100644 Interfaces/GSD/Import/CostCenterImport.php create mode 100644 Interfaces/GSD/Import/CostObjectImport.php create mode 100644 Interfaces/GSD/Import/CustomerImport.php create mode 100644 Interfaces/GSD/Import/InvoiceImport.php create mode 100644 Interfaces/GSD/Import/PostingImport.php create mode 100644 Interfaces/GSD/Import/SupplierImport.php create mode 100644 Interfaces/GSD/Importer.php create mode 100644 Interfaces/GSD/Model/Account.php create mode 100644 Interfaces/GSD/Model/Article.php create mode 100644 Interfaces/GSD/Model/BatchPosting.php create mode 100644 Interfaces/GSD/Model/Customer.php create mode 100644 Interfaces/GSD/Model/GSDCostCenter.php create mode 100644 Interfaces/GSD/Model/GSDCostCenterMapper.php create mode 100644 Interfaces/GSD/Model/GSDCostObject.php create mode 100644 Interfaces/GSD/Model/GSDCostObjectMapper.php create mode 100644 Interfaces/GSD/Model/Invoice.php create mode 100644 Interfaces/GSD/Model/Posting.php create mode 100644 Interfaces/GSD/Model/Segment.php create mode 100644 Interfaces/GSD/Model/SegmentType.php create mode 100644 Interfaces/GSD/Model/Supplier.php create mode 100644 Interfaces/GSD/base.sql create mode 100644 Interfaces/Intrexx/Import.php create mode 100644 Interfaces/Intrexx/Import/PromotionImport.php create mode 100644 Interfaces/Intrexx/Import/SeminarImport.php create mode 100644 Interfaces/Intrexx/Import/VisitImport.php create mode 100644 Interfaces/Intrexx/Model/Promotion.php create mode 100644 Interfaces/Intrexx/Model/Seminar.php create mode 100644 Interfaces/Intrexx/Model/Visit.php create mode 100644 Models/ImporterAbstract.php diff --git a/Controller.php b/Controller.php index ccc4a42..860125d 100644 --- a/Controller.php +++ b/Controller.php @@ -16,6 +16,7 @@ namespace Modules\Exchange; use Modules\Navigation\Models\Navigation; use Modules\Navigation\Views\NavigationView; + use phpOMS\Contract\RenderableInterface; use phpOMS\Message\RequestAbstract; use phpOMS\Message\ResponseAbstract; @@ -23,6 +24,9 @@ use phpOMS\Module\ModuleAbstract; use phpOMS\Module\WebInterface; use phpOMS\Views\View; +use Modules\Exchange\Models\InterfaceManager; +use Modules\Exchange\Models\InterfaceManagerMapper; + /** * Exchange controller class. * @@ -98,6 +102,17 @@ final class Controller extends ModuleAbstract implements WebInterface $view->setTemplate('/Modules/Exchange/Theme/Backend/exchange-export-list'); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1007001001, $request, $response)); + $interfaces = InterfaceManagerMapper::getAll(); + + $export = []; + foreach ($interfaces as $interface) { + if ($interface->hasExport()) { + $export[] = $interface; + } + } + + $view->addData('interfaces', $export); + return $view; } @@ -107,6 +122,17 @@ final class Controller extends ModuleAbstract implements WebInterface $view->setTemplate('/Modules/Exchange/Theme/Backend/exchange-import-list'); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1007001001, $request, $response)); + $interfaces = InterfaceManagerMapper::getAll(); + + $import = []; + foreach ($interfaces as $interface) { + if ($interface->hasImport()) { + $import[] = $interface; + } + } + + $view->addData('interfaces', $import); + return $view; } diff --git a/Interfaces/GSD/Import/AccountImport.php b/Interfaces/GSD/Import/AccountImport.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Import/AccountImport.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/Import/ArticleImport.php b/Interfaces/GSD/Import/ArticleImport.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Import/ArticleImport.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/Import/BatchPostingImport.php b/Interfaces/GSD/Import/BatchPostingImport.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Import/BatchPostingImport.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/Import/CostCenterImport.php b/Interfaces/GSD/Import/CostCenterImport.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Import/CostCenterImport.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/Import/CostObjectImport.php b/Interfaces/GSD/Import/CostObjectImport.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Import/CostObjectImport.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/Import/CustomerImport.php b/Interfaces/GSD/Import/CustomerImport.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Import/CustomerImport.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/Import/InvoiceImport.php b/Interfaces/GSD/Import/InvoiceImport.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Import/InvoiceImport.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/Import/PostingImport.php b/Interfaces/GSD/Import/PostingImport.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Import/PostingImport.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/Import/SupplierImport.php b/Interfaces/GSD/Import/SupplierImport.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Import/SupplierImport.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/Importer.php b/Interfaces/GSD/Importer.php new file mode 100644 index 0000000..d5058d0 --- /dev/null +++ b/Interfaces/GSD/Importer.php @@ -0,0 +1,215 @@ +importCostCenter($start, $end); + $this->importCostObject($start, $end); + $this->importAddress($start, $end); + $this->importCustomer($start, $end); + $this->importSupplier($start, $end); + $this->importArticle($start, $end); + $this->importAccount($start, $end); + $this->importInvoice($start, $end); + $this->importPosting($start, $end); + $this->importBatchPosting($start, $end); + } + + /** + * Import cost centers + * + * @param \DateTime $start Start time (inclusive) + * @param \DateTime $end End time (inclusive) + * + * @return void + * + * @since 1.0.0 + */ + public function importCostCenter(\DateTime $start, \DateTime $end) : void + { + DataMapperAbstract::setConnection($this->app->dbPool->get('gsd')); + $costCenters = GSDCostCenterMapper::getAll(); + + $obj = new CostCenter(); + DataMapperAbstract::setConnection($this->app->dbPool->get('oms')); + + foreach ($costCenters as $cc) { + $obj->setCostCenter((int) $cc->getCostCenter()); + $obj->setCostCenterName($cc->getDescription()); + + CostCenterMapper::create($obj); + } + } + + /** + * Import cost objects + * + * @param \DateTime $start Start time (inclusive) + * @param \DateTime $end End time (inclusive) + * + * @return void + * + * @since 1.0.0 + */ + public function importCostObject(\DateTime $start, \DateTime $end) : void + { + DataMapperAbstract::setConnection($this->app->dbPool->get('gsd')); + $costObjects = GSDCostObjectMapper::getAll(); + + $obj = new CostObject(); + DataMapperAbstract::setConnection($this->app->dbPool->get('oms')); + + foreach ($costObjects as $co) { + $obj->setCostObject((int) $co->getCostObject()); + $obj->setCostObjectName($co->getDescription()); + + CostObjectMapper::create($obj); + } + } + + /** + * Import addresses + * + * @param \DateTime $start Start time (inclusive) + * @param \DateTime $end End time (inclusive) + * + * @return void + * + * @since 1.0.0 + */ + public function importAddress(\DateTime $start, \DateTime $end) : void + { + } + + /** + * Import customers + * + * @param \DateTime $start Start time (inclusive) + * @param \DateTime $end End time (inclusive) + * + * @return void + * + * @since 1.0.0 + */ + public function importCustomer(\DateTime $start, \DateTime $end) : void + { + } + + /** + * Import suppliers + * + * @param \DateTime $start Start time (inclusive) + * @param \DateTime $end End time (inclusive) + * + * @return void + * + * @since 1.0.0 + */ + public function importSupplier(\DateTime $start, \DateTime $end) : void + { + } + + /** + * Import accounts + * + * @param \DateTime $start Start time (inclusive) + * @param \DateTime $end End time (inclusive) + * + * @return void + * + * @since 1.0.0 + */ + public function importAccount(\DateTime $start, \DateTime $end) : void + { + } + + /** + * Import invoices + * + * @param \DateTime $start Start time (inclusive) + * @param \DateTime $end End time (inclusive) + * + * @return void + * + * @since 1.0.0 + */ + public function importInvoice(\DateTime $start, \DateTime $end) : void + { + } + + /** + * Import postings + * + * @param \DateTime $start Start time (inclusive) + * @param \DateTime $end End time (inclusive) + * + * @return void + * + * @since 1.0.0 + */ + public function importPosting(\DateTime $start, \DateTime $end) : void + { + } + + /** + * Import batch postings + * + * @param \DateTime $start Start time (inclusive) + * @param \DateTime $end End time (inclusive) + * + * @return void + * + * @since 1.0.0 + */ + public function importBatchPosting(\DateTime $start, \DateTime $end) : void + { + } +} diff --git a/Interfaces/GSD/Model/Account.php b/Interfaces/GSD/Model/Account.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Model/Account.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/Model/Article.php b/Interfaces/GSD/Model/Article.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Model/Article.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/Model/BatchPosting.php b/Interfaces/GSD/Model/BatchPosting.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Model/BatchPosting.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/Model/Customer.php b/Interfaces/GSD/Model/Customer.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Model/Customer.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/Model/GSDCostCenter.php b/Interfaces/GSD/Model/GSDCostCenter.php new file mode 100644 index 0000000..850dcbc --- /dev/null +++ b/Interfaces/GSD/Model/GSDCostCenter.php @@ -0,0 +1,201 @@ +createdAt = new \DateTime('now'); + } + + /** + * @return \DateTime + * + * @since 1.0.0 + */ + public function getCreatedAt() : \DateTime + { + return $this->createdAt ?? new \DateTime(); + } + + /** + * Get created by + * + * @return mixed + * + * @since 1.0.0 + */ + public function getCreatedBy() + { + return $this->createdBy; + } + + /** + * Set created by + * + * @param mixed $id Created by + * + * @return void + * + * @since 1.0.0 + */ + public function setCreatedBy($id) : void + { + $this->createdBy = $id; + } + + /** + * Set description + * + * @param string $description Description + * + * @return void + * + * @since 1.0.0 + */ + public function setDescription(string $description) : void + { + $this->description = $description; + } + + /** + * Get description + * + * @return string + * + * @since 1.0.0 + */ + public function getDescription() : string + { + return $this->description; + } + + /** + * Set cost center + * + * @param string $costCenter Cost center + * + * @return void + * + * @since 1.0.0 + */ + public function setCostCenter(string $costCenter) : void + { + $this->costCenter = $costCenter; + } + + /** + * Get cost center + * + * @return string + * + * @since 1.0.0 + */ + public function getCostCenter() : string + { + return $this->costCenter; + } + + /** + * Get id + * + * @return int + * + * @since 1.0.0 + */ + public function getId() : int + { + return $this->id; + } + + /** + * {@inheritdoc} + */ + public function toArray() : array + { + return [ + 'id' => $this->id, + 'createdBy' => $this->createdBy, + 'createdAt' => $this->createdAt->format('Y-m-d H:i:s'), + 'description' => $this->description, + 'costcenter' => $this->costCenter, + ]; + } + + /** + * {@inheritdoc} + */ + public function jsonSerialize() + { + return $this->toArray(); + } +} diff --git a/Interfaces/GSD/Model/GSDCostCenterMapper.php b/Interfaces/GSD/Model/GSDCostCenterMapper.php new file mode 100644 index 0000000..a4d92aa --- /dev/null +++ b/Interfaces/GSD/Model/GSDCostCenterMapper.php @@ -0,0 +1,67 @@ + ['name' => 'ROW_ID', 'type' => 'int', 'internal' => 'id'], + 'row_create_time' => ['name' => 'row_create_time', 'type' => '\DateTime', 'internal' => 'createdAt'], + 'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'], + 'KST' => ['name' => 'KST', 'type' => 'string', 'internal' => 'costcenter'], + 'Bezeichnung' => ['name' => 'Bezeichnung', 'type' => 'string', 'internal' => 'description'], + ]; + + /** + * Primary table. + * + * @var string + * @since 1.0.0 + */ + protected static $table = 'FiKostenstellen'; + + /** + * Created at. + * + * @var string + * @since 1.0.0 + */ + protected static $createdAt = 'row_create_time'; + + /** + * Primary field name. + * + * @var string + * @since 1.0.0 + */ + protected static $primaryField = 'ROW_ID'; +} diff --git a/Interfaces/GSD/Model/GSDCostObject.php b/Interfaces/GSD/Model/GSDCostObject.php new file mode 100644 index 0000000..3d3fb0f --- /dev/null +++ b/Interfaces/GSD/Model/GSDCostObject.php @@ -0,0 +1,201 @@ +createdAt = new \DateTime('now'); + } + + /** + * @return \DateTime + * + * @since 1.0.0 + */ + public function getCreatedAt() : \DateTime + { + return $this->createdAt ?? new \DateTime(); + } + + /** + * Get created by + * + * @return mixed + * + * @since 1.0.0 + */ + public function getCreatedBy() + { + return $this->createdBy; + } + + /** + * Set created by + * + * @param mixed $id Created by + * + * @return void + * + * @since 1.0.0 + */ + public function setCreatedBy($id) : void + { + $this->createdBy = $id; + } + + /** + * Set description + * + * @param string $description Description + * + * @return void + * + * @since 1.0.0 + */ + public function setDescription(string $description) : void + { + $this->description = $description; + } + + /** + * Get description + * + * @return string + * + * @since 1.0.0 + */ + public function getDescription() : string + { + return $this->description; + } + + /** + * Set cost object + * + * @param string $costObject Cost object + * + * @return void + * + * @since 1.0.0 + */ + public function setCostObject(string $costObject) : void + { + $this->costObject = $costObject; + } + + /** + * Get cost object + * + * @return string + * + * @since 1.0.0 + */ + public function getCostObject() : string + { + return $this->costObject; + } + + /** + * Get id + * + * @return int + * + * @since 1.0.0 + */ + public function getId() : int + { + return $this->id; + } + + /** + * {@inheritdoc} + */ + public function toArray() : array + { + return [ + 'id' => $this->id, + 'createdBy' => $this->createdBy, + 'createdAt' => $this->createdAt->format('Y-m-d H:i:s'), + 'description' => $this->description, + 'costObject' => $this->costObject, + ]; + } + + /** + * {@inheritdoc} + */ + public function jsonSerialize() + { + return $this->toArray(); + } +} diff --git a/Interfaces/GSD/Model/GSDCostObjectMapper.php b/Interfaces/GSD/Model/GSDCostObjectMapper.php new file mode 100644 index 0000000..d238563 --- /dev/null +++ b/Interfaces/GSD/Model/GSDCostObjectMapper.php @@ -0,0 +1,67 @@ + ['name' => 'ROW_ID', 'type' => 'int', 'internal' => 'id'], + 'row_create_time' => ['name' => 'row_create_time', 'type' => '\DateTime', 'internal' => 'createdAt'], + 'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'], + 'KTR' => ['name' => 'KTR', 'type' => 'string', 'internal' => 'costobject'], + 'Bezeichnung' => ['name' => 'Bezeichnung', 'type' => 'string', 'internal' => 'description'], + ]; + + /** + * Primary table. + * + * @var string + * @since 1.0.0 + */ + protected static $table = 'FiKostentraeger'; + + /** + * Created at. + * + * @var string + * @since 1.0.0 + */ + protected static $createdAt = 'row_create_time'; + + /** + * Primary field name. + * + * @var string + * @since 1.0.0 + */ + protected static $primaryField = 'ROW_ID'; +} diff --git a/Interfaces/GSD/Model/Invoice.php b/Interfaces/GSD/Model/Invoice.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Model/Invoice.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/Model/Posting.php b/Interfaces/GSD/Model/Posting.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Model/Posting.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/Model/Segment.php b/Interfaces/GSD/Model/Segment.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Model/Segment.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/Model/SegmentType.php b/Interfaces/GSD/Model/SegmentType.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Model/SegmentType.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/Model/Supplier.php b/Interfaces/GSD/Model/Supplier.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/GSD/Model/Supplier.php @@ -0,0 +1 @@ + diff --git a/Interfaces/GSD/base.sql b/Interfaces/GSD/base.sql new file mode 100644 index 0000000..68c69cf --- /dev/null +++ b/Interfaces/GSD/base.sql @@ -0,0 +1,74 @@ +-- CostCenter +SELECT + ROW_ID, row_create_time, row_create_user, KST, Bezeichnung, Auslaufkennzeichen as Status +FROM FiKostenstellen + +-- CostObject +SELECT + ROW_ID, row_create_time, row_create_user, KTR, Bezeichnung +FROM FiKostentraeger + +-- Addresses +SELECT + ROW_ID, row_create_user, row_create_time, Name1, Name2, Name3, Ort, Land, Telefon, PLZ, Strasse, Fax, Email, InternetAdresse +FROM Adressen + +-- Customer +SELECT + row_id, row_create_time, row_create_user, Kundennummer, Info, Auftragssperre, KreditLimitintern, EGUstId, BIC, IBAN, Verkaeufer, AdressId, Steuernummer +FROM Kunden + +-- Supplier +SELECT + row_id, row_create_time, row_create_user, LieferantenNummer, Info, Auftragssperre, EGUstId, BIC, IBAN, AdressId, Steuernummer +FROM Lieferanten + +-- Article +SELECT + row_id, row_create_time, row_create_user, Artikelnummer, Info, Artikelbezeichnung, Artikelbezeichnung2, _Englisch1, _Englisch2, ArtikelGruppenId, Auslaufartikel as Status, Chargenverwaltung, Gewicht, BeschaffungszeitTage, EUWarengruppe +FROM Artikel + +-- Outbound Invoices +SELECT + ROW_ID, ROW_CREATE_TIME, ROW_CREATE_USER, KundenId, BelegartId, AdressId, Status, Auftragsnummer, Frachtkosten, Versandkosten, ReferenzNummer, Belegnummer, Belegdatum, RechnungsAdressId, LieferAdressId, Sachbearbeiter, Verkaeufer +FROM ArchivBelegkopf + +-- Outbound Invoice Elements +SELECT + ROW_ID, ROW_CREATE_TIME, ROW_CREATE_USER, ParentID, ArtikelId, BelegzeilenId, Belegzeilentyp, Rabatt, Einzelpreis, Menge, Belegzeilentext, Steuersatz +FROM ArchivBelegzeilen + +-- Stock +SELECT + ROW_ID, row_create_time, row_create_user, ArtikelID, Charge, Lager, Seriennummer, Bestand +FROM Bestaende + +-- Warehouse +SELECT + row_id, lagernummer, lagerbezeichnung, AdressID +FROM Lagerstammdaten + +-- Stock movement +SELECT + ROW_ID, row_create_time, row_create_user, Charge, Lager, Seriennummer, Belegnummer, Menge, Uhrzeit, Bestand, ArtikelID, PlusMinus, Modus, Wert, Typ +FROM Lagerbewegungsprotokoll + +-- Finance Postings +SELECT + ROW_ID, row_create_time, row_create_user, Konto, GegenKonto, BelegNr, Buchungsdatum, Belegdatum, OPNummer, Steuerschluessel, Betrag, Nettobetrag, BuchText, JournalNr, KST, KTR, EGUstID, FremdbelegNr, StapelID, BuchungsID, KontoC, GegenkontoC, Buchungstyp +From FiBuchungsArchiv + +-- Finance Accounts +SELECT + ROW_ID, row_create_time, row_create_user, Konto, Bezeichnung, BilanzGuv, Zuordnung, Steuerart, Steuerschluesse, UVAPosition, UVAGrundlage, Saldovortrag, EGStatistik, Auslaufkonto as Status, Aktuell, KSTRechn, KTRRechn, KST, KTR, +FROM FiSachkonten + +-- Finance Batch Posting +SELECT + ROW_ID, row_create_time, row_create_user, Buchungsdatum, Buchungsart, BelegNr, BelegDatum, Konto, Betrag, BetragSkontierf, FWBetrag, FremdBelegNr, Buchungstext, Zahlungsbedingung, SkontoTage1, SkontoProz1, SontoTage2, SkontoProz2, SontoTage3, SkontoProz3, Nettotage, EGUstID, Status +FROM FiStapelBuchungen + +-- Finance Batch +SELECT + ROW_ID, row_create_time, row_create_user, Status, Stapeltyp, Buchungsart, Datum +FROM FiStapelInfo \ No newline at end of file diff --git a/Interfaces/Intrexx/Import.php b/Interfaces/Intrexx/Import.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/Intrexx/Import.php @@ -0,0 +1 @@ + diff --git a/Interfaces/Intrexx/Import/PromotionImport.php b/Interfaces/Intrexx/Import/PromotionImport.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/Intrexx/Import/PromotionImport.php @@ -0,0 +1 @@ + diff --git a/Interfaces/Intrexx/Import/SeminarImport.php b/Interfaces/Intrexx/Import/SeminarImport.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/Intrexx/Import/SeminarImport.php @@ -0,0 +1 @@ + diff --git a/Interfaces/Intrexx/Import/VisitImport.php b/Interfaces/Intrexx/Import/VisitImport.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/Intrexx/Import/VisitImport.php @@ -0,0 +1 @@ + diff --git a/Interfaces/Intrexx/Model/Promotion.php b/Interfaces/Intrexx/Model/Promotion.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/Intrexx/Model/Promotion.php @@ -0,0 +1 @@ + diff --git a/Interfaces/Intrexx/Model/Seminar.php b/Interfaces/Intrexx/Model/Seminar.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/Intrexx/Model/Seminar.php @@ -0,0 +1 @@ + diff --git a/Interfaces/Intrexx/Model/Visit.php b/Interfaces/Intrexx/Model/Visit.php new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Interfaces/Intrexx/Model/Visit.php @@ -0,0 +1 @@ + diff --git a/Models/ImporterAbstract.php b/Models/ImporterAbstract.php new file mode 100644 index 0000000..5a29280 --- /dev/null +++ b/Models/ImporterAbstract.php @@ -0,0 +1,58 @@ +remote = $remote; + $this->local = $local; + } +} diff --git a/Models/InterfaceManager.php b/Models/InterfaceManager.php index d5b9014..585f366 100644 --- a/Models/InterfaceManager.php +++ b/Models/InterfaceManager.php @@ -60,11 +60,23 @@ final class InterfaceManager * * @since 1.0.0 */ - public function __construct(string $path) + public function __construct(string $path = '') { $this->path = $path; } + /** + * Get id + * + * @return string + * + * @since 1.0.0 + */ + public function getId() : int + { + return $this->id; + } + /** * Get info path * @@ -77,6 +89,42 @@ final class InterfaceManager return $this->path; } + /** + * Get info name + * + * @return string + * + * @since 1.0.0 + */ + public function getName() : string + { + return $this->info['name']; + } + + /** + * Provides import interface + * + * @return string + * + * @since 1.0.0 + */ + public function hasImport() : bool + { + return $this->info['import']; + } + + /** + * Provides export interface + * + * @return string + * + * @since 1.0.0 + */ + public function hasExport() : bool + { + return $this->info['export']; + } + /** * Load info data from path. * @@ -117,7 +165,7 @@ final class InterfaceManager * @param string $path Value path * @param mixed $data Scalar or array of data to set * @param string $delim Delimiter of path - * + * * @return void * * @since 1.0.0 diff --git a/Theme/Backend/exchange-export-list.tpl.php b/Theme/Backend/exchange-export-list.tpl.php index e6f7c37..5dcf0fd 100644 --- a/Theme/Backend/exchange-export-list.tpl.php +++ b/Theme/Backend/exchange-export-list.tpl.php @@ -11,10 +11,13 @@ * @link http://website.orange-management.de */ -/** + /** * @var \phpOMS\Views\View $this */ -echo $this->getData('nav')->render(); ?> +$interfaces = $this->getData('interfaces'); + +echo $this->getData('nav')->render(); +?>
@@ -23,20 +26,15 @@ echo $this->getData('nav')->render(); ?> getHtml('Title') ?> - getHtml('Website') ?> - - - $value) : $count++; $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/exchange/export/profile?{?}&id=' . $value->getId()); ?> - printHtml($value->getTitle()); ?> - printHtml($value->getCreatedBy()->getName1()); ?> + printHtml($value->getName()); ?> - getHtml('Empty', 0, 0); ?> - + getHtml('Empty', 0, 0); ?> +
diff --git a/Theme/Backend/exchange-import-list.tpl.php b/Theme/Backend/exchange-import-list.tpl.php index 1398e04..a872aaa 100644 --- a/Theme/Backend/exchange-import-list.tpl.php +++ b/Theme/Backend/exchange-import-list.tpl.php @@ -11,10 +11,13 @@ * @link http://website.orange-management.de */ -/** + /** * @var \phpOMS\Views\View $this */ -echo $this->getData('nav')->render(); ?> +$interfaces = $this->getData('interfaces'); + +echo $this->getData('nav')->render(); +?>
@@ -23,20 +26,15 @@ echo $this->getData('nav')->render(); ?> getHtml('Title') ?> - getHtml('Website') ?> - - - $value) : $count++; - $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/exchange/import/profile?{?}&id=' . $value->getId()); ?> + $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/exchange/export/profile?{?}&id=' . $value->getId()); ?> - printHtml($value->getTitle()); ?> - printHtml($value->getCreatedBy()->getName1()); ?> + printHtml($value->getName()); ?> - getHtml('Empty', 0, 0); ?> - + getHtml('Empty', 0, 0); ?> +