ADD stock status to profitcenter order product selection form

This commit is contained in:
E98Developer 2026-04-27 07:04:20 +02:00
parent 1a9fa66af5
commit 08043053ae
6 changed files with 12 additions and 17 deletions

View File

@ -18,7 +18,7 @@ public static function configure(Table $table): Table
->searchable()
->sortable(),
TextColumn::make('sku')
TextColumn::make('supplierProductNumber')
->label('Cikkszám')
->searchable(),

View File

@ -1735,6 +1735,7 @@ public function getDataTableContent(): JsonResponse
$product['krel'] = '';
}
$data['krel'] = $product['krel'];
$data['stock_status'] = $product['stock_status'];
$data['picture'] = false;
if ($product['picture']) {

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,7 +1,7 @@
{
"/js/app.js": "/js/app.js?id=8eebbb7cc03522e40f2a774f36c0d6b0",
"/js/admin.js": "/js/admin.js?id=dff6f8df5f29b21dcf8daab2872577a2",
"/js/module.js": "/js/module.js?id=b8f30ac658c1296e35f9210683fe57c9",
"/js/admin.js": "/js/admin.js?id=1e832d7f064fbbf3729bb9f6addebd8c",
"/js/module.js": "/js/module.js?id=4ba8aa1f63de6c9832edd43780bff4b5",
"/js/components.js": "/js/components.js?id=34668cee8ac371c98657beffcff579b8",
"/css/app.css": "/css/app.css?id=11474616a7ef31af1acf43a25d65f4b6",
"/fonts/vendor/bootstrap-icons/bootstrap-icons.woff2?92ea18a81d737146ff044ddb52010366": "/fonts/vendor/bootstrap-icons/bootstrap-icons.woff2?92ea18a81d737146ff044ddb52010366?id=9ad5aa740d7d5e6a0191b309b9b1986c",

View File

@ -1141,18 +1141,12 @@ solution before template
"defaultContent":''
};
if(Order.getData('orderType')=='daily'){
actionColumn.defaultContent='<input type="number" value="0" min="0" max="9999" step="1" data-decimals="1" class="form-control-sm inputNumberSpinner" style="width: 1em;" "/>'
/*
"defaultContent":'<div class="input-group input-group-sm ">' +
'<button style="min-width: 1.5rem" class="btn-sm btn-decrement btn-outline-secondary btn-minus" type="button">' +
'<strong></strong></button>' +
'<input type="text" inputmode="decimal" style="text-align: center" class="form-control " placeholder="">' +
'<button style="min-width: 1.5rem" class="btn-sm btn-increment btn-outline-secondary btn-plus" type="button">' +
'<strong>+</strong></button>' +
'</div>'
*/
;
actionColumn.render = function (data, type, row) {
if (row.stock_status === 'out_of_stock') {
return '<img src="/images/icons/details_close.png" title="Nincs raktáron" style="width: 24px;">';
}
return '<input type="number" value="0" min="0" max="9999" step="1" data-decimals="1" class="form-control-sm inputNumberSpinner" style="width: 1em;"/>';
};
}
columnData.push(actionColumn);
return columnData;