Merge branch 'feature/SuppplierPortal' into test
# Conflicts: # public/js/admin.js # public/js/module.js # public/mix-manifest.json
This commit is contained in:
commit
4d861ffc04
@ -18,7 +18,7 @@ public static function configure(Table $table): Table
|
||||
->searchable()
|
||||
->sortable(),
|
||||
|
||||
TextColumn::make('sku')
|
||||
TextColumn::make('supplierProductNumber')
|
||||
->label('Cikkszám')
|
||||
->searchable(),
|
||||
|
||||
|
||||
@ -1808,6 +1808,7 @@ public function getDataTableContent(): JsonResponse
|
||||
$product['krel'] = '';
|
||||
}
|
||||
$data['krel'] = $product['krel'];
|
||||
$data['stock_status'] = $product['stock_status'];
|
||||
|
||||
$data['picture'] = false;
|
||||
if ($product['picture']) {
|
||||
|
||||
@ -1229,18 +1229,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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user