mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-21 22:08:41 +00:00
First draft ideas for edifact structure
This commit is contained in:
parent
99d4d80d19
commit
f9296042ae
|
|
@ -0,0 +1,47 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpOMS\Utils\EDI\Edifact\Components;
|
||||
|
||||
/**
|
||||
* EDI Header
|
||||
*
|
||||
* @category Framework
|
||||
* @package phpOMS\Utils\Converter
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class BGM
|
||||
{
|
||||
private $id = '';
|
||||
|
||||
private $date = null;
|
||||
|
||||
private $subersion = '06A';
|
||||
|
||||
private $un = 'UN';
|
||||
|
||||
private $bdewVersion = '2.6d';
|
||||
|
||||
public function __construct(string $type, string $version, string $subersion, string $un, string $bdewVersion)
|
||||
{
|
||||
$this->type = $type;
|
||||
$this->version = $version;
|
||||
$this->subersion = $subersion;
|
||||
$this->un = $un;
|
||||
$this->bdewVersion = $bdewVersion;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpOMS\Utils\EDI\Edifact\Components;
|
||||
|
||||
/**
|
||||
* EDI Header
|
||||
*
|
||||
* @category Framework
|
||||
* @package phpOMS\Utils\Converter
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class UNH
|
||||
{
|
||||
private $type = '';
|
||||
|
||||
private $version = 'D';
|
||||
|
||||
private $subersion = '06A';
|
||||
|
||||
private $un = 'UN';
|
||||
|
||||
private $bdewVersion = '2.6d';
|
||||
|
||||
public function __construct(string $type, string $version, string $subersion, string $un, string $bdewVersion)
|
||||
{
|
||||
$this->type = $type;
|
||||
$this->version = $version;
|
||||
$this->subersion = $subersion;
|
||||
$this->un = $un;
|
||||
$this->bdewVersion = $bdewVersion;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace phpOMS\Utils\EDI\Edifact;
|
||||
|
||||
use phpOMS\Utils\EDI\Edifact\Components\UNH;
|
||||
use phpOMS\Utils\EDI\Edifact\Components\BGM;
|
||||
|
||||
/**
|
||||
* EDI Header
|
||||
*
|
||||
* @category Framework
|
||||
* @package phpOMS\Utils\Converter
|
||||
* @license OMS License 1.0
|
||||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class INVOIC
|
||||
{
|
||||
private $unh = null;
|
||||
|
||||
private $bgm = null;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->unh = new UNH('INVOIC', 'D', '06A', 'UN', '2.6d');
|
||||
$this->bgm = new BGM();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user