minor tpl and bug fixes

This commit is contained in:
Dennis Eichhorn 2020-06-13 21:25:30 +02:00
parent 571c0a8cb0
commit 9fb413a97d
4 changed files with 178 additions and 14 deletions

39
Models/NullItem.php Normal file
View 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();
}
}

View 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',
]];

View 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',
]];

View File

@ -12,21 +12,16 @@
*/
declare(strict_types=1);
$footerView = new \phpOMS\Views\PaginationView($this->l11nManager, $this->request, $this->response);
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
$footerView->setPages(20);
$footerView->setPage(1);
/** @var \phpOMS\Views\View $this */
$items = $this->getData('items');
echo $this->getData('nav')->render(); ?>
<div class="row">
<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">
<caption><?= $this->getHtml('Items'); ?><i class="fa fa-download floatRight download btn"></i></caption>
<thead>
<tr>
<td><?= $this->getHtml('ID', '0', '0'); ?>
@ -35,9 +30,6 @@ echo $this->getData('nav')->render(); ?>
<td><?= $this->getHtml('Available') ?>
<td><?= $this->getHtml('Reserved') ?>
<td><?= $this->getHtml('Ordered') ?>
<tfoot>
<tr>
<td colspan="6">
<tbody>
<?php $count = 0; foreach ($items as $key => $value) : ++$count;
$url = \phpOMS\Uri\UriFactory::build('{/prefix}sales/item/single?{?}&id=' . $value->getId()); ?>
@ -50,9 +42,9 @@ echo $this->getData('nav')->render(); ?>
<td>
<?php endforeach; ?>
<?php if ($count === 0) : ?>
<tr><td colspan="6" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
<?php endif; ?>
<tr><td colspan="6" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
<?php endif; ?>
</table>
</div>
</section>
</div>
</div>