mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-01-11 11:48:41 +00:00
permission changes & minor bug fixes
This commit is contained in:
parent
48ee2ba421
commit
3010bca280
0
Models/ItemStatus.php
Normal file → Executable file
0
Models/ItemStatus.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.ar.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.ar.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.cs.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.cs.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.da.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.da.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.de.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.de.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.el.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.el.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.en.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.en.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.es.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.es.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.fi.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.fi.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.fr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.fr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.hu.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.hu.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.it.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.it.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.ja.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.ja.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.ko.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.ko.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.no.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.no.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.pl.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.pl.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.pt.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.pt.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.ru.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.ru.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.sv.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.sv.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.th.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.th.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.tr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.tr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.uk.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.uk.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.zh.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/Navigation.zh.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ar.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ar.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/cs.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/cs.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/da.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/da.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/de.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/de.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/el.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/el.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/en.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/en.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/es.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/es.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/fi.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/fi.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/fr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/fr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/hu.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/hu.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/it.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/it.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ja.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ja.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ko.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ko.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/no.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/no.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/pl.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/pl.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/pt.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/pt.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ru.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ru.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/sv.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/sv.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/th.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/th.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/tr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/tr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/uk.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/uk.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/zh.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/zh.lang.php
Normal file → Executable file
|
|
@ -55,7 +55,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<?php
|
||||
$count = 0;
|
||||
foreach ($attributes as $key => $value) : ++$count;
|
||||
$url = UriFactory::build('{/prefix}item/attribute/type?{?}&id=' . $value->getId());
|
||||
$url = UriFactory::build('item/attribute/type?{?}&id=' . $value->getId());
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
|
|
|
|||
|
|
@ -127,14 +127,14 @@ echo $this->getData('nav')->render(); ?>
|
|||
</label>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach ($items as $key => $value) : ++$count;
|
||||
$url = UriFactory::build('{/prefix}purchase/item/profile?{?}&id=' . $value->getId());
|
||||
$url = UriFactory::build('purchase/item/profile?{?}&id=' . $value->getId());
|
||||
$image = $value->getFileByType('backend_image');
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_item'); ?>" width="30" loading="lazy" class="item-image"
|
||||
src="<?= $image instanceof NullMedia ?
|
||||
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
|
||||
UriFactory::build('{/prefix}' . $image->getPath()); ?>"></a>
|
||||
UriFactory::build('' . $image->getPath()); ?>"></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->number); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name1')->description); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name2')->description); ?></a>
|
||||
|
|
|
|||
|
|
@ -129,14 +129,14 @@ echo $this->getData('nav')->render(); ?>
|
|||
|
||||
<tbody>
|
||||
<?php $count = 0; foreach ($items as $key => $value) : ++$count;
|
||||
$url = UriFactory::build('{/prefix}sales/item/profile?{?}&id=' . $value->getId());
|
||||
$url = UriFactory::build('sales/item/profile?{?}&id=' . $value->getId());
|
||||
$image = $value->getFileByType(0);
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_item'); ?>" width="30" loading="lazy" class="item-image"
|
||||
src="<?= $image instanceof NullMedia ?
|
||||
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
|
||||
UriFactory::build('{/prefix}' . $image->getPath()); ?>"></a>
|
||||
UriFactory::build('' . $image->getPath()); ?>"></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->number); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name1')->description); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name2')->description); ?></a>
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ echo $this->getData('nav')->render();
|
|||
<section class="portlet">
|
||||
<div class="portlet-body">
|
||||
<img alt="<?= $this->printHtml($image->name); ?>" width="100%" loading="lazy" class="item-image"
|
||||
src="<?= UriFactory::build('{/prefix}' . $image->getPath()); ?>">
|
||||
src="<?= UriFactory::build('' . $image->getPath()); ?>">
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
|
@ -169,7 +169,7 @@ echo $this->getData('nav')->render();
|
|||
<td><?= $this->getHtml('CreatedAt'); ?>
|
||||
<tbody>
|
||||
<?php foreach ($notes as $note) :
|
||||
$url = UriFactory::build('{/prefix}editor/single?{?}&id=' . $note->getId());
|
||||
$url = UriFactory::build('editor/single?{?}&id=' . $note->getId());
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($note->title); ?></a>
|
||||
|
|
@ -192,7 +192,7 @@ echo $this->getData('nav')->render();
|
|||
<td><?= $this->getHtml('CreatedAt'); ?>
|
||||
<tbody>
|
||||
<?php foreach ($files as $file) :
|
||||
$url = UriFactory::build('{/prefix}media/single?{?}&id=' . $file->getId());
|
||||
$url = UriFactory::build('media/single?{?}&id=' . $file->getId());
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($file->name); ?></a>
|
||||
|
|
@ -222,12 +222,12 @@ echo $this->getData('nav')->render();
|
|||
<?php
|
||||
/** @var \Modules\Billing\Models\Bill $invoice */
|
||||
foreach ($newestInvoices as $invoice) :
|
||||
$url = UriFactory::build('{/prefix}sales/bill?{?}&id=' . $invoice->getId());
|
||||
$url = UriFactory::build('sales/bill?{?}&id=' . $invoice->getId());
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($invoice->getNumber()); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($invoice->type->getL11n()); ?></a>
|
||||
<td><a class="content" href="<?= UriFactory::build('{/prefix}sales/client/profile?{?}&id=' . $invoice->client->getId()); ?>"><?= $this->printHtml($invoice->billTo); ?></a>
|
||||
<td><a class="content" href="<?= UriFactory::build('sales/client/profile?{?}&id=' . $invoice->client->getId()); ?>"><?= $this->printHtml($invoice->billTo); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($invoice->netSales->getCurrency()); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($invoice->createdAt->format('Y-m-d')); ?></a>
|
||||
<?php endforeach; ?>
|
||||
|
|
@ -250,7 +250,7 @@ echo $this->getData('nav')->render();
|
|||
<td><?= $this->getHtml('Net'); ?>
|
||||
<tbody>
|
||||
<?php $i = -1; foreach ($topCustomers as $client) : ++$i;
|
||||
$url = UriFactory::build('{/prefix}sales/client/profile?id=' . $client->getId());
|
||||
$url = UriFactory::build('sales/client/profile?id=' . $client->getId());
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($client->number); ?></a>
|
||||
|
|
@ -468,7 +468,7 @@ echo $this->getData('nav')->render();
|
|||
<tbody>
|
||||
<?php $c = 0;
|
||||
foreach ($itemL11n as $key => $value) : ++$c;
|
||||
$url = UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
$url = UriFactory::build('admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="#"><i class="fa fa-times"></i></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
|
|
@ -546,7 +546,7 @@ echo $this->getData('nav')->render();
|
|||
<tbody>
|
||||
<?php $c = 0;
|
||||
foreach ($itemAttribute as $key => $value) : ++$c;
|
||||
$url = UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
$url = UriFactory::build('admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="#"><i class="fa fa-times"></i></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
|
|
@ -628,7 +628,7 @@ echo $this->getData('nav')->render();
|
|||
<?php $c = 0;
|
||||
$l11ns = [];
|
||||
foreach ($l11ns as $key => $value) : ++$c;
|
||||
$url = UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
$url = UriFactory::build('admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="#"><i class="fa fa-times"></i></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
|
|
@ -759,7 +759,7 @@ echo $this->getData('nav')->render();
|
|||
<?php $c = 0;
|
||||
$l11ns = [];
|
||||
foreach ($l11ns as $key => $value) : ++$c;
|
||||
$url = UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
$url = UriFactory::build('admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="#"><i class="fa fa-times"></i></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
|
|
@ -930,7 +930,7 @@ echo $this->getData('nav')->render();
|
|||
<?php
|
||||
/** @var \Modules\Billing\Models\Bill $invoice */
|
||||
foreach ($allInvoices as $invoice) :
|
||||
$url = UriFactory::build('{/prefix}sales/bill?{?}&id=' . $invoice->getId());
|
||||
$url = UriFactory::build('sales/bill?{?}&id=' . $invoice->getId());
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><?= $invoice->getNumber(); ?></a>
|
||||
|
|
|
|||
|
|
@ -52,14 +52,14 @@ echo $this->getData('nav')->render(); ?>
|
|||
<input id="itemList-r8-desc" name="itemList-sort" type="radio"><label for="itemList-r8-desc"><i class="sort-desc fa fa-chevron-down"></i></label>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach ($items as $key => $value) : ++$count;
|
||||
$url = UriFactory::build('{/prefix}warehouse/item/profile?{?}&id=' . $value->getId());
|
||||
$url = UriFactory::build('warehouse/item/profile?{?}&id=' . $value->getId());
|
||||
$image = $value->getFileByType('backend_image');
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><a href="<?= $url; ?>"><img alt="<?= $this->printHtml($image->name); ?>" width="30" loading="lazy" class="item-image"
|
||||
src="<?= $image instanceof NullMedia ?
|
||||
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
|
||||
UriFactory::build('{/prefix}' . $image->getPath()); ?>"></a>
|
||||
UriFactory::build('' . $image->getPath()); ?>"></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->number); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name1')->description); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getL11n('name2')->description); ?></a>
|
||||
|
|
|
|||
0
tests/Controller/Api/ApiControllerAttributeTrait.php
Normal file → Executable file
0
tests/Controller/Api/ApiControllerAttributeTrait.php
Normal file → Executable file
0
tests/Controller/Api/ApiControllerItemTrait.php
Normal file → Executable file
0
tests/Controller/Api/ApiControllerItemTrait.php
Normal file → Executable file
0
tests/Controller/Api/Test file.txt
Normal file → Executable file
0
tests/Controller/Api/Test file.txt
Normal file → Executable file
0
tests/Controller/ApiControllerTest.php
Normal file → Executable file
0
tests/Controller/ApiControllerTest.php
Normal file → Executable file
0
tests/Models/ItemAttributeTest.php
Normal file → Executable file
0
tests/Models/ItemAttributeTest.php
Normal file → Executable file
0
tests/Models/ItemAttributeTypeL11nTest.php
Normal file → Executable file
0
tests/Models/ItemAttributeTypeL11nTest.php
Normal file → Executable file
0
tests/Models/ItemAttributeTypeTest.php
Normal file → Executable file
0
tests/Models/ItemAttributeTypeTest.php
Normal file → Executable file
0
tests/Models/ItemAttributeValueTest.php
Normal file → Executable file
0
tests/Models/ItemAttributeValueTest.php
Normal file → Executable file
0
tests/Models/ItemL11nTest.php
Normal file → Executable file
0
tests/Models/ItemL11nTest.php
Normal file → Executable file
0
tests/Models/ItemL11nTypeTest.php
Normal file → Executable file
0
tests/Models/ItemL11nTypeTest.php
Normal file → Executable file
0
tests/Models/ItemTest.php
Normal file → Executable file
0
tests/Models/ItemTest.php
Normal file → Executable file
0
tests/Models/NullItemAttributeTest.php
Normal file → Executable file
0
tests/Models/NullItemAttributeTest.php
Normal file → Executable file
0
tests/Models/NullItemAttributeTypeL11nTest.php
Normal file → Executable file
0
tests/Models/NullItemAttributeTypeL11nTest.php
Normal file → Executable file
0
tests/Models/NullItemAttributeTypeTest.php
Normal file → Executable file
0
tests/Models/NullItemAttributeTypeTest.php
Normal file → Executable file
0
tests/Models/NullItemAttributeValueTest.php
Normal file → Executable file
0
tests/Models/NullItemAttributeValueTest.php
Normal file → Executable file
0
tests/Models/NullItemL11nTest.php
Normal file → Executable file
0
tests/Models/NullItemL11nTest.php
Normal file → Executable file
0
tests/Models/NullItemL11nTypeTest.php
Normal file → Executable file
0
tests/Models/NullItemL11nTypeTest.php
Normal file → Executable file
0
tests/Models/NullItemTest.php
Normal file → Executable file
0
tests/Models/NullItemTest.php
Normal file → Executable file
Loading…
Reference in New Issue
Block a user