EV3-422 Verziováltott teszt - PC árlista version 1

This commit is contained in:
E98Developer 2026-05-31 14:59:46 +02:00
parent c1e56f6cab
commit 87c4b1cf3e
16 changed files with 97 additions and 27391 deletions

View File

@ -4,7 +4,6 @@
use App\Http\Controllers\Controller;
use App\Models\ProductGroup;
use App\Models\ProfitCenter;
use App\Models\Supplier;
use App\Repositories\ProductRepository;
use Carbon\Carbon;
@ -20,12 +19,10 @@ public function index(): View
{
$suppliers = Supplier::orderBy('name')->get(['id', 'name'])->toArray();
$profitCenters = ProfitCenter::orderBy('name')->get(['id', 'name'])->toArray();
// var_dump($this->testFileMod);
return view('admin.priceListProfitCenter.index')->with(
['suppliers' => $suppliers,
'profitCenters' => $profitCenters,
// 'testFileMod'=>($this->testFileMod)?'true':'false'
]
@ -36,12 +33,6 @@ public function getDataTableContent(): JsonResponse
{
$groupId = null;
$searchStr = null;
if (\request()->get('profitCenterId')) {
$profitCenterId = \request()->get('profitCenterId');
} else {
return \response()->json(['data' => []]);
}
if (\request()->get('supplierId')) {
$supplierId = \request()->get('supplierId');
} else {
@ -60,7 +51,6 @@ public function getDataTableContent(): JsonResponse
$searchStr = \request()->get('searchStr');
if (substr($searchStr, 0, 2) == '**') {
$special['type'] = str_replace('*', '', $searchStr);
$special['profitCenterId'] = $profitCenterId;
$searchStr = null;
}
} else {
@ -80,7 +70,7 @@ public function getDataTableContent(): JsonResponse
$productRepo->setRelation(
'ProductGroup', 'Supplier', 'Producer', 'PriceList', 'LastPrice');
// $products=$productRepo->getByGroupId($groupId,true);
$products = $productRepo->getSupplierProductFromPriceList($supplierId, $profitCenterId, $deliveryDate, $groupId, $searchStr, $special);
$products = $productRepo->getSupplierProductFromPriceList($supplierId, null, $deliveryDate, $groupId, $searchStr, $special);
// debug($products[1]);
$ret = ['data' => []];
// dd($products[0]);
@ -105,7 +95,12 @@ public function getDataTableContent(): JsonResponse
$data['hooreycaId'] = $product['hooreycaId'];
$data['office'] = '';
$data['extn'] = '';
$data['favorites'] = $product['favorites'];
$data['favorites'] =0;
if(isset($product['favorites'])){
$data['favorites'] = $product['favorites'];
}
$data['stock_status'] = $product['stock_status'] ?? 'in_stock';
if ($product['krel'] == 1) {
$product['krel'] = '*';
} else {

View File

@ -268,7 +268,7 @@ private function assignFavoritesToProductArray($profitCenterId, $productsArray)
return $productsArray;
}
public function getSupplierProductFromPriceList(int $supplierId, int $profitCenterId, ?string $deliveryDate = null, ?int $productGroupId = null, ?string $searchStr = null, ?array $special = null)
public function getSupplierProductFromPriceList(int $supplierId, ?int $profitCenterId, ?string $deliveryDate = null, ?int $productGroupId = null, ?string $searchStr = null, ?array $special = null)
{
debug('special', $special);
$productsArray = [];
@ -296,7 +296,7 @@ public function getSupplierProductFromPriceList(int $supplierId, int $profitCent
$productsArray = $products->get()->toArray();
}
if ($special && isset($special['withFavorites'])) {
if ($special && isset($special['withFavorites']) && $profitCenterId) {
$productsArray = $this->assignFavoritesToProductArray($profitCenterId, $productsArray);
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,11 +1,29 @@
{
"/js/app.js": "/js/app.js?id=788435874adbbf8e5ddc27cc9d18e00e",
"/js/admin.js": "/js/admin.js?id=ba79095db4031ff8fcb2db67804629a7",
"/js/module.js": "/js/module.js?id=29a456e6546fb80088a21e164cdfca82",
"/js/components.js": "/js/components.js?id=34668cee8ac371c98657beffcff579b8",
"/css/app.css": "/css/app.css?id=05445eb8fb6f79c539507896e268aa91",
"/js/app.js": "/js/app.js?id=9656e746371b15d28c4e4f8f816f8fc1",
"/js/app.js.map": "/js/app.js.map?id=5e840a79ad0112917eec1908319f0c8e",
"/js/admin.js": "/js/admin.js?id=00c715982027fc542b928d348b24e8af",
"/js/admin.js.map": "/js/admin.js.map?id=32d952e22efb807952338b770d5b5bb7",
"/js/module.js": "/js/module.js?id=b05d0f0c1be083b0ffceb825f55945c1",
"/js/module.js.map": "/js/module.js.map?id=6928f5a88a0e48d6c6519d540873ddd0",
"/js/components.js": "/js/components.js?id=aac1b5221c918d1afb98a34e79620cde",
"/js/components.js.map": "/js/components.js.map?id=03868ef122820440c621f29c51b3c467",
"/css/app.css": "/css/app.css?id=56d48ae2ee54edb4fc49a67b8f0115c5",
"/fonts/vendor/bootstrap-icons/bootstrap-icons.woff2?92ea18a81d737146ff044ddb52010366": "/fonts/vendor/bootstrap-icons/bootstrap-icons.woff2?92ea18a81d737146ff044ddb52010366?id=9ad5aa740d7d5e6a0191b309b9b1986c",
"/fonts/vendor/bootstrap-icons/bootstrap-icons.woff?1295669cd4e305c97f2cfc16d56614b8": "/fonts/vendor/bootstrap-icons/bootstrap-icons.woff?1295669cd4e305c97f2cfc16d56614b8?id=d1af9af6052c51b169be6c628ae99bb5",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_10_eceadf_60x60.png?fcf8539b586ee18bcdea1755486148fb": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_10_eceadf_60x60.png?fcf8539b586ee18bcdea1755486148fb?id=7296ac90a70836a72af140e0346fc932",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_ffffff_60x60.png?c514e7ba7589d0f49ac63c298fcdae5e": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_ffffff_60x60.png?c514e7ba7589d0f49ac63c298fcdae5e?id=3c8a4c2c86890f38eb35a7a4f17108ac",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_10_f8f7f6_60x60.png?2999b2509cfc0da9d2638ce9f892d541": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_10_f8f7f6_60x60.png?2999b2509cfc0da9d2638ce9f892d541?id=42fbd9c28ff43250024032714111e992",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_65_654b24_60x60.png?6a53536235d962916651e5ade810be9c": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_65_654b24_60x60.png?6a53536235d962916651e5ade810be9c?id=0351aa2b5ee6d5c4a7e2eea67afd9a94",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_eceadf_60x60.png?bb99362eb46ac5b5824fabbfe6271e29": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_eceadf_60x60.png?bb99362eb46ac5b5824fabbfe6271e29?id=396642d988742f9ee3b73d239a417f59",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_f7f3de_60x60.png?9d1facfcb89e21b78242e2eb8cbd491c": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_f7f3de_60x60.png?9d1facfcb89e21b78242e2eb8cbd491c?id=425506cc6819db6ad5b01352df235653",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_68_b83400_60x60.png?f786ff5070a9c8cde4f9b567fc84e004": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_68_b83400_60x60.png?f786ff5070a9c8cde4f9b567fc84e004?id=98eb208ad7450212818f3a70f09729d6",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_222222_256x240.png?bcf1cdc9c7d1486173cc9aaa8b1fc77b": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_222222_256x240.png?bcf1cdc9c7d1486173cc9aaa8b1fc77b?id=5eb1d32635db28ba94d9d35ab363c70e",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_b83400_256x240.png?f481d1b47a462e74eed1e20ae7ac7824": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_b83400_256x240.png?f481d1b47a462e74eed1e20ae7ac7824?id=9ac73e8431d4dda3af9e6eb6d29f88ea",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_ffffff_256x240.png?fc616163e14c52dba5af7fdb573d2e64": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_ffffff_256x240.png?fc616163e14c52dba5af7fdb573d2e64?id=c0ac47f58e9e9e4b679101073a3f010a",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_8c291d_256x240.png?faf8dac1c3a19fa71b3349936071548b": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_8c291d_256x240.png?faf8dac1c3a19fa71b3349936071548b?id=732d736a3d70c5279a5ce1b837da69d1",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_3572ac_256x240.png?6b15e6e5507d972be2e15634d0f7bc82": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_3572ac_256x240.png?6b15e6e5507d972be2e15634d0f7bc82?id=beeb872e16251574c55cf3627f9978e1",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_fbdb93_256x240.png?aca518e5efefaf76c067ffb0e2438334": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_fbdb93_256x240.png?aca518e5efefaf76c067ffb0e2438334?id=f5de1bb077a39c0d29d38e6dccaecf4b",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_diagonal-maze_20_6e4f1c_10x10.png?bde4cdb5c33f6a9c1c25419a4732ad98": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_diagonal-maze_20_6e4f1c_10x10.png?bde4cdb5c33f6a9c1c25419a4732ad98?id=bff005db4cfc39e962fdd98eb8a0ef33",
"/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot?23f19bb08961f37aaf692ff943823453": "/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot?23f19bb08961f37aaf692ff943823453?id=0868992b7c56298026b76b22c534eab9",
"/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2?d878b0a6a1144760244ff0665888404c": "/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2?d878b0a6a1144760244ff0665888404c?id=4ec8652aef2ce3e636bf32c24dd5ce86",
"/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff?2285773e6b4b172f07d9b777c81b0775": "/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff?2285773e6b4b172f07d9b777c81b0775?id=66ea863732752673548b3b6537b6465b",
@ -21,26 +39,13 @@
"/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff?eeccf4f66002c6f2ba24d3d22f2434c2": "/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff?eeccf4f66002c6f2ba24d3d22f2434c2?id=26f963f67e793d91cc76426d43836849",
"/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf?be9ee23c0c6390141475d519c2c5fb8f": "/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf?be9ee23c0c6390141475d519c2c5fb8f?id=d44877cb1fa07af67d56e4d86d39dd96",
"/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.svg?7a8b4f130182d19a2d7c67d80c090397": "/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.svg?7a8b4f130182d19a2d7c67d80c090397?id=37bc7099f6f1ba80236164f22e905837",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_10_eceadf_60x60.png?fcf8539b586ee18bcdea1755486148fb": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_10_eceadf_60x60.png?fcf8539b586ee18bcdea1755486148fb?id=7296ac90a70836a72af140e0346fc932",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_ffffff_60x60.png?c514e7ba7589d0f49ac63c298fcdae5e": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_ffffff_60x60.png?c514e7ba7589d0f49ac63c298fcdae5e?id=3c8a4c2c86890f38eb35a7a4f17108ac",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_10_f8f7f6_60x60.png?2999b2509cfc0da9d2638ce9f892d541": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_10_f8f7f6_60x60.png?2999b2509cfc0da9d2638ce9f892d541?id=42fbd9c28ff43250024032714111e992",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_65_654b24_60x60.png?6a53536235d962916651e5ade810be9c": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_65_654b24_60x60.png?6a53536235d962916651e5ade810be9c?id=0351aa2b5ee6d5c4a7e2eea67afd9a94",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_eceadf_60x60.png?bb99362eb46ac5b5824fabbfe6271e29": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_eceadf_60x60.png?bb99362eb46ac5b5824fabbfe6271e29?id=396642d988742f9ee3b73d239a417f59",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_f7f3de_60x60.png?9d1facfcb89e21b78242e2eb8cbd491c": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_15_f7f3de_60x60.png?9d1facfcb89e21b78242e2eb8cbd491c?id=425506cc6819db6ad5b01352df235653",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_68_b83400_60x60.png?f786ff5070a9c8cde4f9b567fc84e004": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_fine-grain_68_b83400_60x60.png?f786ff5070a9c8cde4f9b567fc84e004?id=98eb208ad7450212818f3a70f09729d6",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_222222_256x240.png?bcf1cdc9c7d1486173cc9aaa8b1fc77b": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_222222_256x240.png?bcf1cdc9c7d1486173cc9aaa8b1fc77b?id=5eb1d32635db28ba94d9d35ab363c70e",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_b83400_256x240.png?f481d1b47a462e74eed1e20ae7ac7824": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_b83400_256x240.png?f481d1b47a462e74eed1e20ae7ac7824?id=9ac73e8431d4dda3af9e6eb6d29f88ea",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_ffffff_256x240.png?fc616163e14c52dba5af7fdb573d2e64": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_ffffff_256x240.png?fc616163e14c52dba5af7fdb573d2e64?id=c0ac47f58e9e9e4b679101073a3f010a",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_8c291d_256x240.png?faf8dac1c3a19fa71b3349936071548b": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_8c291d_256x240.png?faf8dac1c3a19fa71b3349936071548b?id=732d736a3d70c5279a5ce1b837da69d1",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_3572ac_256x240.png?6b15e6e5507d972be2e15634d0f7bc82": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_3572ac_256x240.png?6b15e6e5507d972be2e15634d0f7bc82?id=beeb872e16251574c55cf3627f9978e1",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_fbdb93_256x240.png?aca518e5efefaf76c067ffb0e2438334": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-icons_fbdb93_256x240.png?aca518e5efefaf76c067ffb0e2438334?id=f5de1bb077a39c0d29d38e6dccaecf4b",
"/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_diagonal-maze_20_6e4f1c_10x10.png?bde4cdb5c33f6a9c1c25419a4732ad98": "/images/vendor/jquery-ui-themes/themes/pepper-grinder/ui-bg_diagonal-maze_20_6e4f1c_10x10.png?bde4cdb5c33f6a9c1c25419a4732ad98?id=bff005db4cfc39e962fdd98eb8a0ef33",
"/images/vendor/jquery-ui/themes/base/ui-icons_444444_256x240.png?d1b818587c3bc65058fe43800e4a191c": "/images/vendor/jquery-ui/themes/base/ui-icons_444444_256x240.png?d1b818587c3bc65058fe43800e4a191c?id=bed10eb948aa66a924e32f2022f0b7c1",
"/images/vendor/jquery-ui/themes/base/ui-icons_555555_256x240.png?35d57320d9df28ec0d0d8bd1b5c75983": "/images/vendor/jquery-ui/themes/base/ui-icons_555555_256x240.png?35d57320d9df28ec0d0d8bd1b5c75983?id=d927e3a7feaea813b9bd0fd242e90de2",
"/images/vendor/jquery-ui/themes/base/ui-icons_ffffff_256x240.png?92bef7e45fed3caba8dc9348edef4df2": "/images/vendor/jquery-ui/themes/base/ui-icons_ffffff_256x240.png?92bef7e45fed3caba8dc9348edef4df2?id=1e1f6219e7b6c134d1955b8db1907af5",
"/images/vendor/jquery-ui/themes/base/ui-icons_777620_256x240.png?f423048bf942a7a33b33b1b982ecdb51": "/images/vendor/jquery-ui/themes/base/ui-icons_777620_256x240.png?f423048bf942a7a33b33b1b982ecdb51?id=7c2eb0d985914d94938ebc386ad09e37",
"/images/vendor/jquery-ui/themes/base/ui-icons_cc0000_256x240.png?5cbbd560bcf30acb95dd3b0b0d61645a": "/images/vendor/jquery-ui/themes/base/ui-icons_cc0000_256x240.png?5cbbd560bcf30acb95dd3b0b0d61645a?id=e5fe3b8d656a0dcf8c574ec8eb4cb6fe",
"/images/vendor/jquery-ui/themes/base/ui-icons_777777_256x240.png?f5d5fce2f36b5776eab8b314efc2dfd8": "/images/vendor/jquery-ui/themes/base/ui-icons_777777_256x240.png?f5d5fce2f36b5776eab8b314efc2dfd8?id=0c3579368edda27d14bb4910e27002b6",
"/css/app.css.map": "/css/app.css.map?id=f2c21c32fbebc737566a180cea6cd164",
"/js/customize.js": "/js/customize.js?id=31b57208bc19a039066296cd7322567f",
"/css/invoice.css": "/css/invoice.css?id=14b5784b76704d02969da9561631ed3f"
}

View File

@ -37,11 +37,9 @@ window.PriceListProfitCenterAdmin=function (options) {
}
let changeParameter={
supplier:'',
profitCenter:'',
deliveryDate:'',
/*
supplier:26,
profitCenter:49,
deliveryDate:'2023-09-10',
*/
@ -155,7 +153,6 @@ window.PriceListProfitCenterAdmin=function (options) {
});
$('.supplierSelect').on('change',root.changePriceListProfitCenterParameter);
$('.profitCenterSelect').on('change',root.changePriceListProfitCenterParameter);
//$('input[name="deliveryDate"]').on('change',changePriceListProfitCenterParameter);
@ -165,9 +162,6 @@ window.PriceListProfitCenterAdmin=function (options) {
});
/*
*/
$(".profitCenterSelect").select2({
maximumSelectionLength: 1,
});
$(CSSSelectorForm + ' .datePicker').datepicker({
dateFormat: 'yy-mm-dd',
@ -232,7 +226,6 @@ window.PriceListProfitCenterAdmin=function (options) {
data.groupId=selectedProductGroup;
*/
data.supplierId=changeParameter.supplier;
data.profitCenterId=changeParameter.profitCenter;
data.deliveryDate=changeParameter.deliveryDate;
data.groupId=selectedProductGroup;
}

View File

@ -1208,15 +1208,16 @@ solution before template
{"width": "10px", "targets": 0 },
{ "className": "dt-left", "targets": 1 },
// { "width": "120px", "targets": 1 },
{ "width": "28px", "targets": 2 },
{ "width": "41px", "targets": 3 },
{ "width": "76px", "targets": 4 },
{ "width": "55px", "targets": 5 },
{ "width": "70px", "targets": 6 },
{ "width": "54px", "targets": 7 },
{ "width": "57px", "targets": 8 },
{ "width": "42px", "targets": 9 },
{ "width": "100px", "targets": 10},
{ "width": "50px", "targets": 2 },
{ "width": "28px", "targets": 3 },
{ "width": "41px", "targets": 4 },
{ "width": "76px", "targets": 5 },
{ "width": "55px", "targets": 6 },
{ "width": "70px", "targets": 7 },
{ "width": "54px", "targets": 8 },
{ "width": "57px", "targets": 9 },
{ "width": "42px", "targets": 10 },
{ "width": "100px", "targets": 11},
{"className": "dt-center", "targets": "_all"},
];
}
@ -1229,6 +1230,15 @@ solution before template
"defaultContent": ''
},
{ "data": "name" },
{
"data": "stock_status",
"render": function (data) {
if (data === 'out_of_stock') {
return '<i class="bi bi-x-circle-fill" title="Nincs raktáron" style="color:#dc3545;"></i>';
}
return '<i class="bi bi-check-circle-fill" title="Raktáron" style="color:#28a745;"></i>';
}
},
{ "data": "krel" },
{ "data": "packing"},
{ "data": "unitValue" },

View File

@ -99,16 +99,6 @@
</select>
</div>
</div>
<div class="form-group row">
<label for="profitCenterSelect" class="col-sm-2 col-form-label">Profitcenter:</label>
<div class="col-sm-10">
<select class="profitCenterSelect" name="profitCenter" multiple="multiple" style="width: 100%">
@foreach($profitCenters as $profitCenter)
<option value="{{$profitCenter['id']}}"@if ($profitCenter['id']==-49) selected @endif>{{$profitCenter['name']}}</option>
@endforeach
</select>
</div>
</div>
<div class="form-group row">
<label for="remark" class="col-sm-2 col-form-label">Szállítási dátum</label>
<div class="col-sm-10">

View File

@ -4,6 +4,7 @@
<tr>
<th></th>
<th>Termék megnevezése</th>
<th>Raktár</th>
<th>REL</th>
<th>Kisze-relés</th>
<th>Súly/Űrtartalom </th>
@ -25,6 +26,7 @@
<th></th>
<th>Termék megnevezése</th>
<th>Raktár</th>
<th>REL</th>
<th>Kisze-relés</th>
<th>Súly/Űrtartalom </th>

View File

@ -1,7 +1,7 @@
{{--
{{var_dump($productGroup['children'])}}
--}}
@foreach($productGroup['children'] as $productGroup)
@foreach($productGroup['children'] ?? [] as $productGroup)
<li class="list-unstyled">
@if(!$productGroup['isLeaf'])