From f9296042ae241babafe28795f51540ba966ed48c Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 16 Oct 2017 13:39:46 +0200 Subject: [PATCH] First draft ideas for edifact structure --- Utils/EDI/Edifact/Components/BGM.php | 47 ++++++++++++++++++++++++++++ Utils/EDI/Edifact/Components/UNH.php | 47 ++++++++++++++++++++++++++++ Utils/EDI/Edifact/INVOIC.php | 41 ++++++++++++++++++++++++ 3 files changed, 135 insertions(+) diff --git a/Utils/EDI/Edifact/Components/BGM.php b/Utils/EDI/Edifact/Components/BGM.php index e69de29bb..f3f8fb7fa 100644 --- a/Utils/EDI/Edifact/Components/BGM.php +++ b/Utils/EDI/Edifact/Components/BGM.php @@ -0,0 +1,47 @@ +type = $type; + $this->version = $version; + $this->subersion = $subersion; + $this->un = $un; + $this->bdewVersion = $bdewVersion; + } +} diff --git a/Utils/EDI/Edifact/Components/UNH.php b/Utils/EDI/Edifact/Components/UNH.php index e69de29bb..4c69f96ee 100644 --- a/Utils/EDI/Edifact/Components/UNH.php +++ b/Utils/EDI/Edifact/Components/UNH.php @@ -0,0 +1,47 @@ +type = $type; + $this->version = $version; + $this->subersion = $subersion; + $this->un = $un; + $this->bdewVersion = $bdewVersion; + } +} diff --git a/Utils/EDI/Edifact/INVOIC.php b/Utils/EDI/Edifact/INVOIC.php index e69de29bb..9361d2eb0 100644 --- a/Utils/EDI/Edifact/INVOIC.php +++ b/Utils/EDI/Edifact/INVOIC.php @@ -0,0 +1,41 @@ +unh = new UNH('INVOIC', 'D', '06A', 'UN', '2.6d'); + $this->bgm = new BGM(); + } +}