This commit is contained in:
Dennis Eichhorn 2022-12-10 22:17:54 +01:00
parent 5b03f0c1e7
commit 88a8897308
4 changed files with 10 additions and 10 deletions

View File

@ -5,7 +5,7 @@
"type": 2,
"subtype": 1,
"name": "Suppliers",
"uri": "{/prefix}purchase/supplier/list",
"uri": "{/lang}/{/app}/purchase/supplier/list",
"target": "self",
"icon": null,
"order": 1,
@ -19,7 +19,7 @@
"type": 3,
"subtype": 1,
"name": "List",
"uri": "{/prefix}purchase/supplier/list",
"uri": "{/lang}/{/app}/purchase/supplier/list",
"target": "self",
"icon": null,
"order": 1,
@ -34,7 +34,7 @@
"type": 3,
"subtype": 1,
"name": "Create",
"uri": "{/prefix}purchase/supplier/create?{?}",
"uri": "{/lang}/{/app}/purchase/supplier/create?{?}",
"target": "self",
"icon": null,
"order": 5,
@ -51,7 +51,7 @@
"type": 3,
"subtype": 1,
"name": "Supplier",
"uri": "{/prefix}purchase/analysis/supplier?{?}",
"uri": "{/lang}/{/app}/purchase/analysis/supplier?{?}",
"target": "self",
"icon": null,
"order": 2,

View File

@ -103,13 +103,13 @@ echo $this->getData('nav')->render(); ?>
</label>
<tbody>
<?php $count = 0; foreach ($suppliers as $key => $value) : ++$count;
$url = UriFactory::build('purchase/supplier/profile?{?}&id=' . $value->getId());
$url = UriFactory::build('{/lang}/{/app}/purchase/supplier/profile?{?}&id=' . $value->getId());
$image = $value->getFileByType(0); ?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_supplier'); ?>" 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('' . $image->getPath()); ?>"></a>
UriFactory::build('{/lang}/{/app}/' . $image->getPath()); ?>"></a>
<td data-label="<?= $this->getHtml('ID', '0', '0'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->number); ?></a>
<td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->profile->account->name1); ?> <?= $this->printHtml($value->profile->account->name2); ?></a>
<td data-label="<?= $this->getHtml('City'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->mainAddress->city); ?></a>

View File

@ -239,7 +239,7 @@ echo $this->getData('nav')->render();
<td><?= $this->getHtml('CreatedAt'); ?>
<tbody>
<?php foreach ($notes as $note) :
$url = UriFactory::build('editor/single?{?}&id=' . $note->getId());
$url = UriFactory::build('{/lang}/{/app}/editor/single?{?}&id=' . $note->getId());
?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $note->title; ?></a>
@ -262,7 +262,7 @@ echo $this->getData('nav')->render();
<td><?= $this->getHtml('CreatedAt'); ?>
<tbody>
<?php foreach ($files as $file) :
$url = UriFactory::build('media/single?{?}&id=' . $file->getId());
$url = UriFactory::build('{/lang}/{/app}/media/single?{?}&id=' . $file->getId());
?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $file->name; ?></a>
@ -292,7 +292,7 @@ echo $this->getData('nav')->render();
<?php
/** @var \Modules\Billing\Models\Bill $invoice */
foreach ($newestInvoices as $invoice) :
$url = UriFactory::build('purchase/bill?{?}&id=' . $invoice->getId());
$url = UriFactory::build('{/lang}/{/app}/purchase/bill?{?}&id=' . $invoice->getId());
?>
<tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><?= $invoice->getNumber(); ?></a>

View File

@ -12,7 +12,7 @@
},
"creator": {
"name": "Karaka",
"website": "www.spl1nes.com"
"website": "jingga.app"
},
"description": "Supplier management module.",
"directory": "SupplierManagement",