MOD EV3-173 Megrendelések-sztornó megrendelések

This commit is contained in:
E98Developer 2026-05-29 07:46:54 +02:00
parent 6746617da1
commit 959addacc7
6 changed files with 17 additions and 2 deletions

View File

@ -16,4 +16,14 @@ final class OrderFlag extends Enum
const modified = 'modified';
const storno = 'storno';
public static function getDescription($value): string
{
return match ($value) {
self::modifier => 'módosító',
self::modified => 'módosított',
self::storno => 'stornó',
default => 'eredeti',
};
}
}

View File

@ -213,6 +213,7 @@ public function getDataTableContent(): JsonResponse
$item['deliveryAddressName'] = $item['deliveryAddress'];
}
$item['canEditable'] = $this->orderCanEditable($item);
$item['orderFlag'] = OrderFlag::getDescription($item['orderFlag']);
// dd($item);
return $item;

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
{
"/js/app.js": "/js/app.js?id=788435874adbbf8e5ddc27cc9d18e00e",
"/js/admin.js": "/js/admin.js?id=ba79095db4031ff8fcb2db67804629a7",
"/js/module.js": "/js/module.js?id=254cdea652e6b16f3d3c1153db86b23a",
"/js/module.js": "/js/module.js?id=29a456e6546fb80088a21e164cdfca82",
"/js/components.js": "/js/components.js?id=34668cee8ac371c98657beffcff579b8",
"/css/app.css": "/css/app.css?id=05445eb8fb6f79c539507896e268aa91",
"/fonts/vendor/bootstrap-icons/bootstrap-icons.woff2?92ea18a81d737146ff044ddb52010366": "/fonts/vendor/bootstrap-icons/bootstrap-icons.woff2?92ea18a81d737146ff044ddb52010366?id=9ad5aa740d7d5e6a0191b309b9b1986c",

View File

@ -204,6 +204,7 @@ if(typeof window.OrderArchiveModule ==="undefined") {
{ "data": "deliveryAddressName" },
{ "data": "sentTime" },
{ "data": "humanId" },
{ "data": "orderFlag" },
{ "data": "confirmed" },
null,
];
@ -214,6 +215,7 @@ if(typeof window.OrderArchiveModule ==="undefined") {
{ "data": "deliveryAddressName" },
{ "data": "sentTime" },
{ "data": "humanId" },
{ "data": "orderFlag" },
{ "data": "confirmed" },
null,
];

View File

@ -15,6 +15,7 @@
<th>szállítási cím</th>
<th>Leadási időpont</th>
<th>Azonosító</th>
<th>Típus</th>
<th>Jóváhagyva</th>
<th></th>
</tr>
@ -29,6 +30,7 @@
<th>szállítási cím</th>
<th>Leadási időpont</th>
<th>Azonosító</th>
<th>Típus</th>
<th>Jóváhagyva</th>
<th></th>
</tr>