This commit is contained in:
Dennis Eichhorn 2022-12-10 22:17:54 +01:00
parent bea6ed1a3f
commit 1874e46708
6 changed files with 14 additions and 14 deletions

View File

@ -5,7 +5,7 @@
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Clients", "name": "Clients",
"uri": "{/prefix}sales/client/list", "uri": "{/lang}/{/app}/sales/client/list",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -19,7 +19,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/prefix}sales/client/list", "uri": "{/lang}/{/app}/sales/client/list",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -34,7 +34,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/prefix}sales/client/create?{?}", "uri": "{/lang}/{/app}/sales/client/create?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -51,7 +51,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Client", "name": "Client",
"uri": "{/prefix}sales/analysis/client?{?}", "uri": "{/lang}/{/app}/sales/analysis/client?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 2, "order": 2,
@ -66,7 +66,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Region", "name": "Region",
"uri": "{/prefix}sales/analysis/region?{?}", "uri": "{/lang}/{/app}/sales/analysis/region?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 3, "order": 3,
@ -81,7 +81,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "SalesRep", "name": "SalesRep",
"uri": "{/prefix}sales/analysis/rep?{?}", "uri": "{/lang}/{/app}/sales/analysis/rep?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 4, "order": 4,

View File

@ -103,14 +103,14 @@ echo $this->getData('nav')->render(); ?>
</label> </label>
<tbody> <tbody>
<?php $count = 0; foreach ($clients as $key => $value) : ++$count; <?php $count = 0; foreach ($clients as $key => $value) : ++$count;
$url = UriFactory::build('sales/client/profile?{?}&id=' . $value->getId()); $url = UriFactory::build('{/lang}/{/app}/sales/client/profile?{?}&id=' . $value->getId());
$image = $value->getFileByType(0); $image = $value->getFileByType(0);
?> ?>
<tr data-href="<?= $url; ?>"> <tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_client'); ?>" width="30" loading="lazy" class="item-image" <td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_client'); ?>" width="30" loading="lazy" class="item-image"
src="<?= $image instanceof NullMedia ? src="<?= $image instanceof NullMedia ?
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') : 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('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('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> <td data-label="<?= $this->getHtml('City'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->mainAddress->city); ?></a>

View File

@ -166,7 +166,7 @@ $bills = $this->getData('newestInvoices') ?? [];
/** @var \Modules\Billing\Models\Bill $value */ /** @var \Modules\Billing\Models\Bill $value */
foreach ($bills as $key => $value) : foreach ($bills as $key => $value) :
++$count; ++$count;
$url = UriFactory::build('sales/bill?{?}&id=' . $value->getId()); $url = UriFactory::build('{/lang}/{/app}/sales/bill?{?}&id=' . $value->getId());
?> ?>
<tr data-href="<?= $url; ?>"> <tr data-href="<?= $url; ?>">
<td><label class="checkbox" for="iBillSelect-<?= $key; ?>"> <td><label class="checkbox" for="iBillSelect-<?= $key; ?>">

View File

@ -135,7 +135,7 @@ $items = $this->getData('items') ?? [];
} }
++$count; ++$count;
$url = UriFactory::build('sales/item/profile?{?}&id=' . $value->getId()); $url = UriFactory::build('{/lang}/{/app}/sales/item/profile?{?}&id=' . $value->getId());
?> ?>
<tr data-href="<?= $url; ?>"> <tr data-href="<?= $url; ?>">
<td><label class="checkbox" for="iSalesItemSelect-<?= $key; ?>"> <td><label class="checkbox" for="iSalesItemSelect-<?= $key; ?>">

View File

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

View File

@ -12,7 +12,7 @@
}, },
"creator": { "creator": {
"name": "Karaka", "name": "Karaka",
"website": "www.spl1nes.com" "website": "jingga.app"
}, },
"description": "The buisness module.", "description": "The buisness module.",
"directory": "ClientManagement", "directory": "ClientManagement",