mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-01-30 12:28:40 +00:00
autofixes
This commit is contained in:
parent
26dc4c5fe0
commit
73ee354cc0
|
|
@ -172,7 +172,7 @@ final class BackendController extends Controller
|
|||
* @since 1.0.0
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function viewItemManagementSalesItem(RequestAbstract $request, ResponseAbstract $response, $data = null): RenderableInterface
|
||||
public function viewItemManagementSalesItem(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
||||
{
|
||||
$view = new View($this->app->l11nManager, $request, $response);
|
||||
$view->setTemplate('/Modules/ItemManagement/Theme/Backend/sales-item-profile');
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ class Item
|
|||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setSuccessor(int $successor): void
|
||||
public function setSuccessor(int $successor) : void
|
||||
{
|
||||
$this->successor = $successor;
|
||||
}
|
||||
|
|
@ -115,7 +115,7 @@ class Item
|
|||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getSuccessor(): int
|
||||
public function getSuccessor() : int
|
||||
{
|
||||
return $this->successor;
|
||||
}
|
||||
|
|
@ -132,7 +132,6 @@ class Item
|
|||
return $this->number;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the item number
|
||||
*
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
abstract class PermissionState extends Enum
|
||||
{
|
||||
public const SALES_ITEM = 1;
|
||||
|
||||
public const PURCHASE_ITEM = 2;
|
||||
|
||||
public const STOCK_ITEM = 3;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
</ul>
|
||||
</div>
|
||||
<div class="tab-content">
|
||||
<input type="radio" id="c-tab-1" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-1' ? ' checked' : '' ?>>
|
||||
<input type="radio" id="c-tab-1" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-1' ? ' checked' : ''; ?>>
|
||||
<div class="tab">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-6 col-lg-4">
|
||||
|
|
@ -93,7 +93,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-2" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-2' ? ' checked' : '' ?>>
|
||||
<input type="radio" id="c-tab-2" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-2' ? ' checked' : ''; ?>>
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getHtml('Property'); ?></h1></header>
|
||||
|
|
@ -211,7 +211,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-4" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-4' ? ' checked' : '' ?>>
|
||||
<input type="radio" id="c-tab-4" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-4' ? ' checked' : ''; ?>>
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getHtml('Sales'); ?></h1></header>
|
||||
|
|
@ -289,7 +289,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-5" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-5' ? ' checked' : '' ?>>
|
||||
<input type="radio" id="c-tab-5" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-5' ? ' checked' : ''; ?>>
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getHtml('Purchase'); ?></h1></header>
|
||||
|
|
@ -388,7 +388,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-6" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-6' ? ' checked' : '' ?>>
|
||||
<input type="radio" id="c-tab-6" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-6' ? ' checked' : ''; ?>>
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getHtml('Accounting'); ?></h1></header>
|
||||
|
|
@ -409,7 +409,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-7" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-7' ? ' checked' : '' ?>>
|
||||
<input type="radio" id="c-tab-7" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-7' ? ' checked' : ''; ?>>
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getHtml('Production'); ?></h1></header>
|
||||
|
|
@ -439,7 +439,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-8" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-8' ? ' checked' : '' ?>>
|
||||
<input type="radio" id="c-tab-8" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-8' ? ' checked' : ''; ?>>
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getHtml('StockList'); ?></h1></header>
|
||||
|
|
@ -457,7 +457,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-9" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-9' ? ' checked' : '' ?>>
|
||||
<input type="radio" id="c-tab-9" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-9' ? ' checked' : ''; ?>>
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getHtml('QM'); ?></h1></header>
|
||||
|
|
@ -470,7 +470,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-10" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-10' ? ' checked' : '' ?>>
|
||||
<input type="radio" id="c-tab-10" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-10' ? ' checked' : ''; ?>>
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getHtml('Packaging'); ?></h1></header>
|
||||
|
|
@ -502,7 +502,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-11" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-11' ? ' checked' : '' ?>>
|
||||
<input type="radio" id="c-tab-11" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-11' ? ' checked' : ''; ?>>
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getHtml('Media'); ?></h1></header>
|
||||
|
|
@ -518,7 +518,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-12" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-12' ? ' checked' : '' ?>>
|
||||
<input type="radio" id="c-tab-12" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-12' ? ' checked' : ''; ?>>
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getHtml('Stock'); ?></h1></header>
|
||||
|
|
@ -555,7 +555,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-13" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-13' ? ' checked' : '' ?>>
|
||||
<input type="radio" id="c-tab-13" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-13' ? ' checked' : ''; ?>>
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getHtml('Disposal'); ?></h1></header>
|
||||
|
|
@ -568,7 +568,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-14" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-14' ? ' checked' : '' ?>>
|
||||
<input type="radio" id="c-tab-14" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-14' ? ' checked' : ''; ?>>
|
||||
<div class="tab">
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->getHtml('Files'); ?></h1></header>
|
||||
|
|
@ -584,7 +584,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<input type="radio" id="c-tab-15" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-15' ? ' checked' : '' ?>>
|
||||
<input type="radio" id="c-tab-15" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-15' ? ' checked' : ''; ?>>
|
||||
<div class="tab">
|
||||
<?php
|
||||
$footerView = new \phpOMS\Views\PaginationView($this->l11nManager, $this->request, $this->response);
|
||||
|
|
@ -599,9 +599,9 @@ echo $this->getData('nav')->render(); ?>
|
|||
<tr>
|
||||
<td>IP
|
||||
<td><?= $this->getHtml('ID', '0', '0'); ?>
|
||||
<td><?= $this->getHtml('Name') ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Log') ?>
|
||||
<td><?= $this->getHtml('Date') ?>
|
||||
<td><?= $this->getHtml('Name'); ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Log'); ?>
|
||||
<td><?= $this->getHtml('Date'); ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
|
|
|
|||
|
|
@ -28,11 +28,11 @@ echo $this->getData('nav')->render(); ?>
|
|||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->getHtml('ID', '0', '0'); ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Name') ?>
|
||||
<td><?= $this->getHtml('Price') ?>
|
||||
<td><?= $this->getHtml('Available') ?>
|
||||
<td><?= $this->getHtml('Reserved') ?>
|
||||
<td><?= $this->getHtml('Ordered') ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Name'); ?>
|
||||
<td><?= $this->getHtml('Price'); ?>
|
||||
<td><?= $this->getHtml('Available'); ?>
|
||||
<td><?= $this->getHtml('Reserved'); ?>
|
||||
<td><?= $this->getHtml('Ordered'); ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
|
|
|
|||
|
|
@ -27,11 +27,11 @@ echo $this->getData('nav')->render(); ?>
|
|||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->getHtml('ID', '0', '0'); ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Name') ?>
|
||||
<td><?= $this->getHtml('Price') ?>
|
||||
<td><?= $this->getHtml('Available') ?>
|
||||
<td><?= $this->getHtml('Reserved') ?>
|
||||
<td><?= $this->getHtml('Ordered') ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Name'); ?>
|
||||
<td><?= $this->getHtml('Price'); ?>
|
||||
<td><?= $this->getHtml('Available'); ?>
|
||||
<td><?= $this->getHtml('Reserved'); ?>
|
||||
<td><?= $this->getHtml('Ordered'); ?>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach ($items as $key => $value) : ++$count;
|
||||
$url = UriFactory::build('{/prefix}sales/item/profile?{?}&id=' . $value->getId()); ?>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
/**
|
||||
* @var \Modules\ItemManagement\Models\Item $item
|
||||
*/
|
||||
$item = $this->getData('item');
|
||||
|
|
@ -39,7 +39,7 @@ echo $this->getData('nav')->render();
|
|||
</ul>
|
||||
</div>
|
||||
<div class="tab-content">
|
||||
<input type="radio" id="c-tab-1" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-1' ? ' checked' : '' ?>>
|
||||
<input type="radio" id="c-tab-1" name="tabular-2"<?= $this->request->getUri()->getFragment() === 'c-tab-1' ? ' checked' : ''; ?>>
|
||||
<div class="tab">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-lg-3 last-lg">
|
||||
|
|
@ -49,11 +49,11 @@ echo $this->getData('nav')->render();
|
|||
<table class="layout wf-100">
|
||||
<tr><td><label for="iId"><?= $this->getHtml('ID', '0', '0'); ?></label>
|
||||
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="number" id="iId" min="1" name="id" value="<?= $this->printHtml($item->getNumber()); ?>" disabled></span>
|
||||
<tr><td><label for="iName1"><?= $this->getHtml('Name1') ?></label>
|
||||
<tr><td><label for="iName1"><?= $this->getHtml('Name1'); ?></label>
|
||||
<tr><td><input type="text" id="iName1" name="name1" value="<?= $this->printHtml(''); ?>" required>
|
||||
<tr><td><label for="iName2"><?= $this->getHtml('Name2') ?></label>
|
||||
<tr><td><label for="iName2"><?= $this->getHtml('Name2'); ?></label>
|
||||
<tr><td><input type="text" id="iName2" name="name2" value="<?= $this->printHtml(''); ?>">
|
||||
<tr><td><label for="iName3"><?= $this->getHtml('Name3') ?></label>
|
||||
<tr><td><label for="iName3"><?= $this->getHtml('Name3'); ?></label>
|
||||
<tr><td><input type="text" id="iName3" name="name3" value="<?= $this->printHtml(''); ?>">
|
||||
</table>
|
||||
</div>
|
||||
|
|
@ -226,12 +226,12 @@ echo $this->getData('nav')->render();
|
|||
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<table id="groupTable" class="box table default">
|
||||
<caption><?= $this->getHtml('Groups') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<caption><?= $this->getHtml('Groups'); ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>
|
||||
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<td class="wf-100"><?= $this->getHtml('Name'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<tbody>
|
||||
<?php $c = 0;
|
||||
$l11ns = [];
|
||||
|
|
@ -303,12 +303,12 @@ echo $this->getData('nav')->render();
|
|||
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<table id="groupTable" class="box table default">
|
||||
<caption><?= $this->getHtml('Groups') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<caption><?= $this->getHtml('Groups'); ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>
|
||||
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<td class="wf-100"><?= $this->getHtml('Name'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<tbody>
|
||||
<?php $c = 0;
|
||||
$l11ns = [];
|
||||
|
|
@ -382,12 +382,12 @@ echo $this->getData('nav')->render();
|
|||
|
||||
<div class="col-xs-12 col-md-6">
|
||||
<table id="groupTable" class="box table default">
|
||||
<caption><?= $this->getHtml('Prices') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<caption><?= $this->getHtml('Prices'); ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>
|
||||
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<td class="wf-100"><?= $this->getHtml('Name'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<tbody>
|
||||
<?php $c = 0;
|
||||
$l11ns = [];
|
||||
|
|
@ -512,12 +512,12 @@ echo $this->getData('nav')->render();
|
|||
|
||||
<div class="col-xs-12 col-md-6 col-lg-4">
|
||||
<table id="groupTable" class="box table default">
|
||||
<caption><?= $this->getHtml('Prices') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<caption><?= $this->getHtml('Prices'); ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>
|
||||
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<td class="wf-100"><?= $this->getHtml('Name'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||
<tbody>
|
||||
<?php $c = 0;
|
||||
$l11ns = [];
|
||||
|
|
@ -685,9 +685,9 @@ echo $this->getData('nav')->render();
|
|||
<tr>
|
||||
<td>IP
|
||||
<td><?= $this->getHtml('ID', '0', '0'); ?>
|
||||
<td><?= $this->getHtml('Name') ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Log') ?>
|
||||
<td><?= $this->getHtml('Date') ?>
|
||||
<td><?= $this->getHtml('Name'); ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Log'); ?>
|
||||
<td><?= $this->getHtml('Date'); ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
|
|
|
|||
|
|
@ -29,12 +29,12 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="col-xs-12">
|
||||
<div class="box wf-100">
|
||||
<table class="default">
|
||||
<caption><?= $this->getHtml('Stock') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<caption><?= $this->getHtml('Stock'); ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->getHtml('ID', '0', '0'); ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Article') ?>
|
||||
<td><?= $this->getHtml('Quantity') ?>
|
||||
<td class="wf-100"><?= $this->getHtml('Article'); ?>
|
||||
<td><?= $this->getHtml('Quantity'); ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="8">
|
||||
<tbody>
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ namespace Modules\ItemManagement\tests\Admin;
|
|||
class AdminTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected const MODULE_NAME = 'ItemManagement';
|
||||
|
||||
protected const URI_LOAD = '';
|
||||
|
||||
use \Modules\tests\ModuleTestTrait;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user