mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-02-15 11:48:40 +00:00
minor tpl and bug fixes
This commit is contained in:
parent
571c0a8cb0
commit
9fb413a97d
39
Models/NullItem.php
Normal file
39
Models/NullItem.php
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.4
|
||||||
|
*
|
||||||
|
* @package Modules\ItemManagement\Models
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link https://orange-management.org
|
||||||
|
*/
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Modules\ItemManagement\Models;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Null model
|
||||||
|
*
|
||||||
|
* @package Modules\ItemManagement\Models
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @link https://orange-management.org
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
final class NullItem extends Item
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param int $id Model id
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public function __construct(int $id = 0)
|
||||||
|
{
|
||||||
|
$this->id = $id;
|
||||||
|
parent::__construct();
|
||||||
|
}
|
||||||
|
}
|
||||||
19
Theme/Backend/Lang/Navigation.de.lang.php
Normal file
19
Theme/Backend/Lang/Navigation.de.lang.php
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.4
|
||||||
|
*
|
||||||
|
* @package Modules\ItemManagement
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link https://orange-management.org
|
||||||
|
*/
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
return ['Navigation' => [
|
||||||
|
'Analyze' => 'Analyse',
|
||||||
|
'Create' => 'Erstellen',
|
||||||
|
'List' => 'Liste',
|
||||||
|
]];
|
||||||
114
Theme/Backend/Lang/de.lang.php
Normal file
114
Theme/Backend/Lang/de.lang.php
Normal file
|
|
@ -0,0 +1,114 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.4
|
||||||
|
*
|
||||||
|
* @package Modules\ItemManagement
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link https://orange-management.org
|
||||||
|
*/
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
return ['ItemManagement' => [
|
||||||
|
'Accounting' => 'Buchhaltung',
|
||||||
|
'All' => 'Alle',
|
||||||
|
'Article' => 'Artikel',
|
||||||
|
'Articlegroup' => 'Artikelsegment',
|
||||||
|
'Attribute' => 'Attribut',
|
||||||
|
'Attributes' => 'Attribute',
|
||||||
|
'Available' => 'Verfügbar',
|
||||||
|
'Bonus' => 'Bonus',
|
||||||
|
'ClientGroup' => 'Kunde/Gruppe',
|
||||||
|
'Commission' => 'Kommission',
|
||||||
|
'Container' => 'Behälter',
|
||||||
|
'CostCenter' => 'Kostenstelle',
|
||||||
|
'CostIndicator' => 'Kostenkennzeichen',
|
||||||
|
'CostObject' => 'Kostenträger',
|
||||||
|
'Country' => 'Land',
|
||||||
|
'Customer' => 'Kunde',
|
||||||
|
'CustomerGroup' => 'Kundengruppe',
|
||||||
|
'CustomsID' => 'Kunden ID',
|
||||||
|
'Date' => 'Datum',
|
||||||
|
'Description' => 'Beschreibung',
|
||||||
|
'Discount' => 'Rabatt',
|
||||||
|
'DiscountP' => 'Rabatt in %',
|
||||||
|
'Disposal' => 'Verschrottung',
|
||||||
|
'EarningIndicator' => 'Umsatzkennzeichen',
|
||||||
|
'End' => 'Ende',
|
||||||
|
'Files' => 'Dateien',
|
||||||
|
'General' => 'Allgemein',
|
||||||
|
'GrossWeight' => 'Brutto Gewicht',
|
||||||
|
'Group' => 'Gruppe',
|
||||||
|
'Height' => 'Höhe',
|
||||||
|
'ID' => 'ID',
|
||||||
|
'Info' => 'Info',
|
||||||
|
'IsActive' => 'Aktiv?',
|
||||||
|
'Item' => 'Artikel',
|
||||||
|
'Items' => 'Artikel',
|
||||||
|
'Language' => 'Sprache',
|
||||||
|
'Leadtime' => 'Lieferzeit',
|
||||||
|
'Length' => 'Länge',
|
||||||
|
'Localization' => 'Lokalisierung',
|
||||||
|
'Location' => 'Ort',
|
||||||
|
'Log' => 'Log',
|
||||||
|
'Logs' => 'Logs',
|
||||||
|
'Lot' => 'Charge',
|
||||||
|
'Makespan' => 'Produktionszeit',
|
||||||
|
'Master' => 'Master',
|
||||||
|
'MaximumLevel' => 'Höchstwert',
|
||||||
|
'Media' => 'Media',
|
||||||
|
'MinimumLevel' => 'Mindestbestand',
|
||||||
|
'Name' => 'Name',
|
||||||
|
'Name1' => 'Name1',
|
||||||
|
'Name2' => 'Name2',
|
||||||
|
'Name3' => 'Name3',
|
||||||
|
'Name4' => 'Name4',
|
||||||
|
'Name5' => 'Name5',
|
||||||
|
'NetWeight' => 'Netto Gewicht',
|
||||||
|
'None' => 'Keine',
|
||||||
|
'Ordered' => 'Bestellt',
|
||||||
|
'Packaging' => 'Verpackung',
|
||||||
|
'Price' => 'Preis',
|
||||||
|
'Prices' => 'Preise',
|
||||||
|
'PriceUnit' => 'Stückpreis',
|
||||||
|
'Productgroup' => 'Produktgruppe',
|
||||||
|
'Production' => 'Produktion',
|
||||||
|
'Properties' => 'Attribute',
|
||||||
|
'Property' => 'Attribut',
|
||||||
|
'Purchase' => 'Einkauf',
|
||||||
|
'Purchasing' => 'Einkaufen',
|
||||||
|
'QA' => 'QS',
|
||||||
|
'QM' => 'QM',
|
||||||
|
'Quantity' => 'Anzahl',
|
||||||
|
'QuantityUnit' => 'Mengeneinheit',
|
||||||
|
'ReorderLevel' => 'Bestellgrenze',
|
||||||
|
'Reserved' => 'Reservierd',
|
||||||
|
'Sales' => 'Umsatz',
|
||||||
|
'Segment' => 'Segment',
|
||||||
|
'ShelfLife' => 'Haltbarkeit',
|
||||||
|
'SN' => 'SN',
|
||||||
|
'Source' => 'Quelle',
|
||||||
|
'Start' => 'Start',
|
||||||
|
'Status' => 'Status',
|
||||||
|
'Stock' => 'Lager',
|
||||||
|
'StockList' => 'Lagerliste',
|
||||||
|
'Successor' => 'Nachfolger',
|
||||||
|
'Supplier' => 'Lieferant',
|
||||||
|
'Tax' => 'Steuer',
|
||||||
|
'Text' => 'Text',
|
||||||
|
'TimeUnit' => 'Zeiteinheit',
|
||||||
|
'Tracking' => 'Verfolgung',
|
||||||
|
'TradingUnit' => 'Handelseinheit',
|
||||||
|
'Translation' => 'Übersetzung',
|
||||||
|
'Type' => 'Typ',
|
||||||
|
'Unit' => 'Einheit',
|
||||||
|
'Value' => 'Wert',
|
||||||
|
'Variation' => 'Variation',
|
||||||
|
'Variations' => 'Variationen',
|
||||||
|
'Volume' => 'Volumen',
|
||||||
|
'Warehouse' => 'Lager',
|
||||||
|
'Width' => 'Breite',
|
||||||
|
]];
|
||||||
|
|
@ -12,21 +12,16 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
/** @var \phpOMS\Views\View $this */
|
||||||
$footerView = new \phpOMS\Views\PaginationView($this->l11nManager, $this->request, $this->response);
|
|
||||||
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
|
|
||||||
$footerView->setPages(20);
|
|
||||||
$footerView->setPage(1);
|
|
||||||
|
|
||||||
$items = $this->getData('items');
|
$items = $this->getData('items');
|
||||||
|
|
||||||
echo $this->getData('nav')->render(); ?>
|
echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<div class="box wf-100">
|
<section class="portlet">
|
||||||
|
<div class="portlet-head"><?= $this->getHtml('Items'); ?><i class="fa fa-download floatRight download btn"></i></div>
|
||||||
<table class="default">
|
<table class="default">
|
||||||
<caption><?= $this->getHtml('Items'); ?><i class="fa fa-download floatRight download btn"></i></caption>
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= $this->getHtml('ID', '0', '0'); ?>
|
<td><?= $this->getHtml('ID', '0', '0'); ?>
|
||||||
|
|
@ -35,9 +30,6 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<td><?= $this->getHtml('Available') ?>
|
<td><?= $this->getHtml('Available') ?>
|
||||||
<td><?= $this->getHtml('Reserved') ?>
|
<td><?= $this->getHtml('Reserved') ?>
|
||||||
<td><?= $this->getHtml('Ordered') ?>
|
<td><?= $this->getHtml('Ordered') ?>
|
||||||
<tfoot>
|
|
||||||
<tr>
|
|
||||||
<td colspan="6">
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $count = 0; foreach ($items as $key => $value) : ++$count;
|
<?php $count = 0; foreach ($items as $key => $value) : ++$count;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}sales/item/single?{?}&id=' . $value->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}sales/item/single?{?}&id=' . $value->getId()); ?>
|
||||||
|
|
@ -50,9 +42,9 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<td>
|
<td>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if ($count === 0) : ?>
|
<?php if ($count === 0) : ?>
|
||||||
<tr><td colspan="6" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
<tr><td colspan="6" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user