commit 360c2fbdee1100a9c9d31e8676ff848050eab2ff Author: Dennis Eichhorn Date: Sun Nov 29 21:57:18 2015 +0100 Init diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php new file mode 100644 index 0000000..47d4228 --- /dev/null +++ b/Admin/Install/Navigation.php @@ -0,0 +1,38 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace Modules\Purchase\Admin\Install; + +/** + * Navigation class. + * + * @category Modules + * @package Modules\Admin + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +class Navigation +{ + public static function install($dbPool) + { + $navData = json_decode(file_get_contents(__DIR__ . '/nav.install.json'), true); + + $class = '\\Modules\\Navigation\\Admin\\Installer'; + $class::installExternal($dbPool, $navData); + } +} diff --git a/Admin/Install/nav.install.json b/Admin/Install/nav.install.json new file mode 100644 index 0000000..4ab175c --- /dev/null +++ b/Admin/Install/nav.install.json @@ -0,0 +1,95 @@ +[ + { + "id": 1002101001, + "pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd", + "type": 2, + "subtype": 0, + "name": "Purchase", + "uri": null, + "target": "self", + "icon": "fa fa-shopping-cart", + "order": 30, + "from": 1002100000, + "permission": null, + "parent": 0, + "children": [ + { + "id": 1002104001, + "pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd", + "type": 2, + "subtype": 1, + "name": "Invoices", + "uri": "/{/lang}/backend/purchase/invoice/list", + "target": "self", + "icon": null, + "order": 5, + "from": 1002100000, + "permission": null, + "parent": 1002101001, + "children": [ + { + "id": 1002104101, + "pid": "475124021da7877ef311983bb9eb769b1bd94f22", + "type": 3, + "subtype": 1, + "name": "Invoices", + "uri": "/{/lang}/backend/purchase/invoice/list", + "target": "self", + "icon": null, + "order": 1, + "from": 1002100000, + "permission": null, + "parent": 1002104001, + "children": [ + { + "id": 1002104201, + "pid": "b6e53e5e6ef4ea4ab05514366d6d7d0c3be5b228", + "type": 3, + "subtype": 1, + "name": "Invoice", + "uri": "/{/lang}/backend/purchase/invoice/single", + "target": "self", + "icon": null, + "order": 1, + "from": 1002100000, + "permission": null, + "parent": 1002104001, + "children": [] + } + ] + }, + { + "id": 1002104301, + "pid": "475124021da7877ef311983bb9eb769b1bd94f22", + "type": 3, + "subtype": 1, + "name": "Create", + "uri": "/{/lang}/backend/purchase/invoice/create", + "target": "self", + "icon": null, + "order": 5, + "from": 1002100000, + "permission": null, + "parent": 1002104001, + "children": [] + } + ] + }, + { + "id": 1002106001, + "pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd", + "type": 2, + "subtype": 1, + "name": "Analysis", + "uri": "/{/lang}/backend/purchase/analysis", + "target": "self", + "icon": null, + "order": 15, + "from": 1002100000, + "permission": null, + "parent": 1002101001, + "children": [] + } + ] + } +] diff --git a/Admin/Installer.php b/Admin/Installer.php new file mode 100644 index 0000000..59e5a95 --- /dev/null +++ b/Admin/Installer.php @@ -0,0 +1,103 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace Modules\Purchase\Admin; + +use phpOMS\DataStorage\Database\DatabaseType; +use phpOMS\DataStorage\Database\Pool; +use phpOMS\Module\InstallerAbstract; + +/** + * Purchase install class. + * + * @category Modules + * @package Modules\Purchase + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +class Installer extends InstallerAbstract +{ + + /** + * {@inheritdoc} + */ + public static function install(Pool $dbPool, array $info) + { + parent::install($dbPool, $info); + + switch ($dbPool->get('core')->getType()) { + case DatabaseType::MYSQL: + $dbPool->get('core')->con->prepare( + 'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'purchase_article` ( + `purchase_article_id` int(11) NOT NULL AUTO_INCREMENT, + `purchase_article_item` int(11) DEFAULT NULL, + PRIMARY KEY (`purchase_article_id`), + KEY `purchase_article_item` (`purchase_article_item`) + )ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;' + )->execute(); + + $dbPool->get('core')->con->prepare( + 'ALTER TABLE `' . $dbPool->get('core')->prefix . 'purchase_article` + ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'purchase_article_ibfk_1` FOREIGN KEY (`purchase_article_item`) REFERENCES `' . $dbPool->get('core')->prefix . 'itemreference` (`itemreference_id`);' + )->execute(); + + $dbPool->get('core')->con->prepare( + 'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'purchase_supplier` ( + `purchase_supplier_id` int(11) NOT NULL AUTO_INCREMENT, + `purchase_supplier_account` int(11) NOT NULL, + PRIMARY KEY (`purchase_supplier_id`), + KEY `account` (`purchase_supplier_account`) + )ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;' + )->execute(); + + $dbPool->get('core')->con->prepare( + 'ALTER TABLE `' . $dbPool->get('core')->prefix . 'purchase_supplier` + ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'purchase_supplier_ibfk_1` FOREIGN KEY (`purchase_supplier_account`) REFERENCES `' . $dbPool->get('core')->prefix . 'account` (`account_id`);' + )->execute(); + + // TODO: create reference between WE, RG and Order????? + /* These are the invoices that get created by the purchasing department */ + $dbPool->get('core')->con->prepare( + 'CREATE TABLE if NOT EXISTS `' . $dbPool->get('core')->prefix . 'purchase_invoice` ( + `purchase_invoice_id` int(11) NOT NULL AUTO_INCREMENT, + `purchase_invoice_status` tinyint(2) DEFAULT NULL, + `purchase_invoice_type` tinyint(2) DEFAULT NULL, + `purchase_invoice_created` datetime DEFAULT NULL, + `purchase_invoice_printed` datetime DEFAULT NULL, + `purchase_invoice_price` decimal(9,2) DEFAULT NULL, + `purchase_invoice_currency` varchar(3) DEFAULT NULL, + `purchase_invoice_creator` int(11) NOT NULL, + `purchase_invoice_supplier` int(11) NOT NULL, + `purchase_invoice_referer` int(11) NOT NULL, + PRIMARY KEY (`purchase_invoice_id`), + KEY `purchase_invoice_creator` (`purchase_invoice_creator`), + KEY `purchase_invoice_supplier` (`purchase_invoice_supplier`), + KEY `purchase_invoice_referer` (`purchase_invoice_referer`) + )ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;' + )->execute(); + + $dbPool->get('core')->con->prepare( + 'ALTER TABLE `' . $dbPool->get('core')->prefix . 'purchase_invoice` + ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'purchase_invoice_ibfk_1` FOREIGN KEY (`purchase_invoice_creator`) REFERENCES `' . $dbPool->get('core')->prefix . 'account` (`account_id`), + ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'purchase_invoice_ibfk_2` FOREIGN KEY (`purchase_invoice_supplier`) REFERENCES `' . $dbPool->get('core')->prefix . 'purchase_supplier` (`purchase_supplier_id`), + ADD CONSTRAINT `' . $dbPool->get('core')->prefix . 'purchase_invoice_ibfk_3` FOREIGN KEY (`purchase_invoice_referer`) REFERENCES `' . $dbPool->get('core')->prefix . 'account` (`account_id`);' + )->execute(); + break; + } + } +} diff --git a/Controller.php b/Controller.php new file mode 100644 index 0000000..024f473 --- /dev/null +++ b/Controller.php @@ -0,0 +1,230 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +namespace Modules\Purchase; + +use Modules\Navigation\Models\Navigation; +use Modules\Navigation\Views\NavigationView; +use phpOMS\Contract\RenderableInterface; +use phpOMS\Message\RequestAbstract; +use phpOMS\Message\RequestDestination; +use phpOMS\Message\ResponseAbstract; +use phpOMS\Module\ModuleAbstract; +use phpOMS\Module\WebInterface; +use phpOMS\Views\View; +use phpOMS\Views\ViewLayout; + +/** + * Purchase controller class. + * + * @category Modules + * @package Modules\Purchase + * @author OMS Development Team + * @author Dennis Eichhorn + * @license OMS License 1.0 + * @link http://orange-management.com + * @since 1.0.0 + */ +class Controller extends ModuleAbstract implements WebInterface +{ + + /** + * Module name. + * + * @var \string + * @since 1.0.0 + */ + protected static $module = 'Purchase'; + + /** + * Localization files. + * + * @var \string + * @since 1.0.0 + */ + protected static $localization = [ + RequestDestination::BACKEND => ['backend'], + ]; + + /** + * Providing. + * + * @var \string + * @since 1.0.0 + */ + protected static $providing = [ + 'Content', + ]; + + /** + * Dependencies. + * + * @var \string + * @since 1.0.0 + */ + protected static $dependencies = []; + + /** + * Routing elements. + * + * @var array + * @since 1.0.0 + */ + protected static $routes = [ + '^.*/backend/purchase/invoice/create.*$' => [['dest' => '\Modules\Purchase\Controller:viewPurchaseInvoiceCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],], + '^.*/backend/purchase/invoice/list.*$' => [['dest' => '\Modules\Purchase\Controller:viewPurchaseInvoiceList', 'method' => 'GET', 'type' => ViewLayout::MAIN],], + + '^.*/backend/purchase/article/list.*$' => [['dest' => '\Modules\Purchase\Controller:viewPurchaseArticleList', 'method' => 'GET', 'type' => ViewLayout::MAIN],], + '^.*/backend/purchase/article/recommend.*$' => [['dest' => '\Modules\Purchase\Controller:viewPurchaseOrderRecommendation', 'method' => 'GET', 'type' => ViewLayout::MAIN],], + '^.*/backend/purchase/article/create.*$' => [['dest' => '\Modules\Purchase\Controller:viewPurchaseArticleCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],], + '^.*/backend/purchase/article/profile.*$' => [['dest' => '\Modules\Purchase\Controller:viewPurchaseArticleProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],], + ]; + + /** + * @param RequestAbstract $request Request + * @param ResponseAbstract $response Response + * @param mixed $data Generic data + * + * @return RenderableInterface + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + public function viewPurchaseInvoiceList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + { + $view = new View($this->app, $request, $response); + $view->setTemplate('/Modules/Purchase/Theme/backend/invoice-list'); + $view->addData('nav', $this->createNavigation(1003001001, $request, $response)); + + return $view; + } + + /** + * @param RequestAbstract $request Request + * @param ResponseAbstract $response Response + * @param mixed $data Generic data + * + * @return RenderableInterface + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + public function viewPurchaseInvoiceCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + { + $view = new View($this->app, $request, $response); + $view->setTemplate('/Modules/Purchase/Theme/backend/invoice-create'); + $view->addData('nav', $this->createNavigation(1003001001, $request, $response)); + + return $view; + } + + /** + * @param RequestAbstract $request Request + * @param ResponseAbstract $response Response + * @param mixed $data Generic data + * + * @return RenderableInterface + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + public function viewPurchaseArticleList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + { + $view = new View($this->app, $request, $response); + $view->setTemplate('/Modules/Purchase/Theme/backend/article-list'); + $view->addData('nav', $this->createNavigation(1003001001, $request, $response)); + + return $view; + } + + /** + * @param RequestAbstract $request Request + * @param ResponseAbstract $response Response + * @param mixed $data Generic data + * + * @return RenderableInterface + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + public function viewPurchaseArticleCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + { + $view = new View($this->app, $request, $response); + $view->setTemplate('/Modules/Purchase/Theme/backend/article-create'); + $view->addData('nav', $this->createNavigation(1003001001, $request, $response)); + + return $view; + } + + /** + * @param RequestAbstract $request Request + * @param ResponseAbstract $response Response + * @param mixed $data Generic data + * + * @return RenderableInterface + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + public function viewPurchaseArticleProfile(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + { + $view = new View($this->app, $request, $response); + $view->setTemplate('/Modules/Purchase/Theme/backend/article-profile'); + $view->addData('nav', $this->createNavigation(1003001001, $request, $response)); + + return $view; + } + + /** + * @param RequestAbstract $request Request + * @param ResponseAbstract $response Response + * @param mixed $data Generic data + * + * @return RenderableInterface + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + public function viewPurchaseOrderRecommendation(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + { + $view = new View($this->app, $request, $response); + $view->setTemplate('/Modules/Purchase/Theme/backend/article-order-recommendation'); + $view->addData('nav', $this->createNavigation(1003001001, $request, $response)); + + return $view; + } + + /** + * @param int $pageId Page/parent Id for navigation + * @param RequestAbstract $request Request + * @param ResponseAbstract $response Response + * + * @return RenderableInterface + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + private function createNavigation(\int $pageId, RequestAbstract $request, ResponseAbstract $response) + { + $nav = Navigation::getInstance($request, $this->app->dbPool); + $navView = new NavigationView($this->app, $request, $response); + $navView->setTemplate('/Modules/Navigation/Theme/backend/mid'); + $navView->setNav($nav->getNav()); + $navView->setLanguage($request->getL11n()->language); + $navView->setParent($pageId); + + return $navView; + } +} diff --git a/Models/Article.php b/Models/Article.php new file mode 100644 index 0000000..e69de29 diff --git a/Models/Invoice.php b/Models/Invoice.php new file mode 100644 index 0000000..e69de29 diff --git a/Models/OrderSuggestion.php b/Models/OrderSuggestion.php new file mode 100644 index 0000000..e69de29 diff --git a/Models/Supplier.php b/Models/Supplier.php new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md new file mode 100644 index 0000000..2ae86fb --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Purchase # diff --git a/Theme/backend/analysis-dashboard.tpl.php b/Theme/backend/analysis-dashboard.tpl.php new file mode 100644 index 0000000..9dd9c79 --- /dev/null +++ b/Theme/backend/analysis-dashboard.tpl.php @@ -0,0 +1,19 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/** + * @var \phpOMS\Views\View $this + */ +echo $this->getData('nav')->render(); ?> diff --git a/Theme/backend/article-create.tpl.php b/Theme/backend/article-create.tpl.php new file mode 100644 index 0000000..9dd9c79 --- /dev/null +++ b/Theme/backend/article-create.tpl.php @@ -0,0 +1,19 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/** + * @var \phpOMS\Views\View $this + */ +echo $this->getData('nav')->render(); ?> diff --git a/Theme/backend/article-list.tpl.php b/Theme/backend/article-list.tpl.php new file mode 100644 index 0000000..9dd9c79 --- /dev/null +++ b/Theme/backend/article-list.tpl.php @@ -0,0 +1,19 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/** + * @var \phpOMS\Views\View $this + */ +echo $this->getData('nav')->render(); ?> diff --git a/Theme/backend/article-order-pending-list.tpl.php b/Theme/backend/article-order-pending-list.tpl.php new file mode 100644 index 0000000..9dd9c79 --- /dev/null +++ b/Theme/backend/article-order-pending-list.tpl.php @@ -0,0 +1,19 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/** + * @var \phpOMS\Views\View $this + */ +echo $this->getData('nav')->render(); ?> diff --git a/Theme/backend/article-order-suggestion.tpl.php b/Theme/backend/article-order-suggestion.tpl.php new file mode 100644 index 0000000..9dd9c79 --- /dev/null +++ b/Theme/backend/article-order-suggestion.tpl.php @@ -0,0 +1,19 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/** + * @var \phpOMS\Views\View $this + */ +echo $this->getData('nav')->render(); ?> diff --git a/Theme/backend/article-single.tpl.php b/Theme/backend/article-single.tpl.php new file mode 100644 index 0000000..9dd9c79 --- /dev/null +++ b/Theme/backend/article-single.tpl.php @@ -0,0 +1,19 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/** + * @var \phpOMS\Views\View $this + */ +echo $this->getData('nav')->render(); ?> diff --git a/Theme/backend/invoice-archive.tpl.php b/Theme/backend/invoice-archive.tpl.php new file mode 100644 index 0000000..9dd9c79 --- /dev/null +++ b/Theme/backend/invoice-archive.tpl.php @@ -0,0 +1,19 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/** + * @var \phpOMS\Views\View $this + */ +echo $this->getData('nav')->render(); ?> diff --git a/Theme/backend/invoice-create.tpl.php b/Theme/backend/invoice-create.tpl.php new file mode 100644 index 0000000..9dd9c79 --- /dev/null +++ b/Theme/backend/invoice-create.tpl.php @@ -0,0 +1,19 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/** + * @var \phpOMS\Views\View $this + */ +echo $this->getData('nav')->render(); ?> diff --git a/Theme/backend/invoice-list.tpl.php b/Theme/backend/invoice-list.tpl.php new file mode 100644 index 0000000..9dd9c79 --- /dev/null +++ b/Theme/backend/invoice-list.tpl.php @@ -0,0 +1,19 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/** + * @var \phpOMS\Views\View $this + */ +echo $this->getData('nav')->render(); ?> diff --git a/Theme/backend/invoice-single.tpl.php b/Theme/backend/invoice-single.tpl.php new file mode 100644 index 0000000..9dd9c79 --- /dev/null +++ b/Theme/backend/invoice-single.tpl.php @@ -0,0 +1,19 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +/** + * @var \phpOMS\Views\View $this + */ +echo $this->getData('nav')->render(); ?> diff --git a/Theme/lang/api.en.lang.php b/Theme/lang/api.en.lang.php new file mode 100644 index 0000000..eea62f6 --- /dev/null +++ b/Theme/lang/api.en.lang.php @@ -0,0 +1,17 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +$MODLANG[1] = [ +]; diff --git a/Theme/lang/backend.en.lang.php b/Theme/lang/backend.en.lang.php new file mode 100644 index 0000000..c0cc349 --- /dev/null +++ b/Theme/lang/backend.en.lang.php @@ -0,0 +1,103 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +$MODLANG['Purchase'] = [ + 'Account' => 'Account', + 'Active' => 'Active', + 'Activity' => 'Activity', + 'Address' => 'Address', + 'All' => 'All', + 'Amount' => 'Amount', + 'Analysis' => 'Analysis', + 'Area' => 'Area', + 'Article' => 'Article', + 'Articles' => 'Articles', + 'Available' => 'Available', + 'Calculate' => 'Calculate', + 'City' => 'City', + 'Class' => 'Class', + 'Confirmation' => 'Confirmation', + 'CoreData' => 'Core data', + 'Country' => 'Country', + 'Created' => 'Created', + 'Creator' => 'Creator', + 'CreditNote' => 'Credit Note', + 'Date' => 'Date', + 'DefaultInternational' => 'Default International', + 'DefaultNational' => 'Default National', + 'Delivery' => 'Delivery', + 'DeliveryNote' => 'Delivery Note', + 'Description' => 'Description', + 'Discount' => 'Discount', + 'DiscountP' => 'Discount in %', + 'Documentation' => 'Documentation', + 'DSO' => 'DSO', + 'Employee' => 'Employee', + 'FAO' => 'FAO', + 'From' => 'From', + 'Group' => 'Group', + 'Groups' => 'Groups', + 'Highest' => 'Highest', + 'Inactive' => 'Inactive', + 'Interval' => 'Interval', + 'Invoice' => 'Invoice', + 'Invoices' => 'Invoices', + 'IsDefault' => 'Is default?', + 'Language' => 'Language', + 'Last' => 'Last', + 'Localization' => 'Localization', + 'Loginname' => 'Loginname', + 'Matchcode' => 'Matchcode', + 'Media' => 'Media', + 'MinPrice' => 'Min Price', + 'Name' => 'Name', + 'Name1' => 'Name 1', + 'Name2' => 'Name 2', + 'Name3' => 'Name 3', + 'Offer' => 'Offer', + 'Order' => 'Order', + 'Orders' => 'Orders', + 'Ordered' => 'Ordered', + 'OrderedBy' => 'Ordered By', + 'OrderedDate' => 'Ordered Date', + 'Payment' => 'Payment', + 'Price' => 'Price', + 'Priority' => 'Priority', + 'Purchases' => 'Purchases', + 'Quantity' => 'Quantity', + 'Receipt' => 'Receipt', + 'Reference' => 'Reference', + 'Sales' => 'Sales', + 'Settings' => 'Settings', + 'Single' => 'Single', + 'State' => 'State', + 'Statistics' => 'Statistics', + 'Status' => 'Status', + 'Stock' => 'Stock', + 'Street' => 'Street', + 'Subgroup' => 'Subgroup', + 'Supplier' => 'Supplier', + 'SupplierID' => 'Supplier ID', + 'SupplierName' => 'Supplier Name', + 'Suppliers' => 'Suppliers', + 'Tax' => 'Tax', + 'Terms' => 'Terms', + 'To' => 'To', + 'TopArticles' => 'Top Articles', + 'Trend' => 'Trend', + 'Turnover' => 'Turnover', + 'Type' => 'Type', + 'ZipCode' => 'ZipCode', +]; diff --git a/Theme/lang/nav.backend.en.lang.php b/Theme/lang/nav.backend.en.lang.php new file mode 100644 index 0000000..91770d7 --- /dev/null +++ b/Theme/lang/nav.backend.en.lang.php @@ -0,0 +1,28 @@ + + * @author Dennis Eichhorn + * @copyright 2013 Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link http://orange-management.com + */ +$MODLANG['Navigation'] = [ + 'Analysis' => 'Analysis', + 'Articles' => 'Articles', + 'Create' => 'Create', + 'Invoices' => 'Invoices', + 'Invoice' => 'Invoice', + 'List' => 'List', + 'OrderSuggestions' => 'Order Suggestions', + 'PendingOrders' => 'Pending Orders', + 'Profile' => 'Profile', + 'Purchase' => 'Purchase', + 'Suppliers' => 'Suppliers', +]; diff --git a/img/module_teaser_small.png b/img/module_teaser_small.png new file mode 100644 index 0000000..f56e6ff Binary files /dev/null and b/img/module_teaser_small.png differ diff --git a/info.json b/info.json new file mode 100644 index 0000000..15e2201 --- /dev/null +++ b/info.json @@ -0,0 +1,52 @@ +{ + "name": { + "id": 1002100000, + "internal": "Purchase", + "external": "OMS Purchase" + }, + "version": "1.0.0", + "requirements": { + "phpOMS": "1.0.0", + "phpOMS-db": "1.0.0" + }, + "creator": { + "name": "Orange Management", + "website": "www.spl1nes.com" + }, + "description": "Purchase module.", + "directory": "Purchase", + "dependencies": {}, + "providing": { + "Navigation": "*" + }, + "load": [ + { + "pid": [ + "6e21607dfaf20d18e793417dd8e874941f0cc740" + ], + "type": 4, + "for": 0, + "from": "Purchase", + "file": "Purchase" + }, + { + "pid": [ + "754a08ddf8bcb1cf22f310f09206dd783d42f7dd" + ], + "type": 5, + "from": "Purchase", + "for": "Navigation", + "file": "nav.backend" + }, + { + "pid": [ + "6e21607dfaf20d18e793417dd8e874941f0cc740", + "3249067d30f611e09d5faed3e8036c8bbba50281" + ], + "type": 5, + "for": "Content", + "file": "backend", + "from": "Purchase" + } + ] +}