MNOD EV3-447 Termék választó összes termék gomb

This commit is contained in:
E98Developer 2026-06-29 06:50:55 +02:00
parent 0ca5eb2255
commit f5d04f29b9
3 changed files with 10 additions and 1 deletions

View File

@ -1889,6 +1889,9 @@ public function getDataTableContent(): JsonResponse
} else { } else {
if (\request()->get('groupId')) { if (\request()->get('groupId')) {
$groupId = \request()->get('groupId'); $groupId = \request()->get('groupId');
if ($groupId === 'all') {
$groupId = null;
}
} }
} }

View File

@ -1269,7 +1269,7 @@ solution before template
data:function (data) { data:function (data) {
data.searchStr=dataTableSearchStr; data.searchStr=dataTableSearchStr;
data.krel=dataTableSearchKrel; data.krel=dataTableSearchKrel;
data.groupId=selectedProductGroup; data.groupId = (selectedProductGroup === 'all') ? null : selectedProductGroup;
data.supplierId=Order.supplierId; data.supplierId=Order.supplierId;
data.deliveryDate=Order.deliveryDate; data.deliveryDate=Order.deliveryDate;
data.orderId=Order.id; data.orderId=Order.id;
@ -1417,6 +1417,9 @@ solution before template
$('.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a.categoryItem.clickable').on('click', $('.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu li a.categoryItem.clickable').on('click',
function () { function () {
let groupId=$(this).data('id'); let groupId=$(this).data('id');
if (groupId === 'all') {
groupId = null;
}
selectedProductGroup=groupId; selectedProductGroup=groupId;
dataTableSearchStr=null; dataTableSearchStr=null;
console.log(groupId); console.log(groupId);

View File

@ -46,6 +46,9 @@
</a> </a>
<div class="sidebar-submenu active" style="display: block;"> <div class="sidebar-submenu active" style="display: block;">
<ul> <ul>
<li class="list-unstyled">
<a class="categoryItem clickable" data-id="all">Összes</a>
</li>
@if(count($productGroup)>0) @if(count($productGroup)>0)
@include('modules.order.productSelectSidebarProductGroupPartial',$productGroup) @include('modules.order.productSelectSidebarProductGroupPartial',$productGroup)
@endif @endif