Update FilamentStock and StockEvent models for improved data handling
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Reformatted the filters in FilamentStock for better readability. - Changed the 'required' property of the stock location in FilamentStock to true, ensuring that stock location is mandatory. - Added 'updatedAt' column to StockEvent for enhanced tracking of stock events.
This commit is contained in:
parent
4c19df717b
commit
50abb22054
@ -30,7 +30,13 @@ export const FilamentStock = {
|
||||
'createdAt',
|
||||
'updatedAt'
|
||||
],
|
||||
filters: ['_id', 'filament', 'filament._id', 'filamentSku', 'filamentSku._id'],
|
||||
filters: [
|
||||
'_id',
|
||||
'filament',
|
||||
'filament._id',
|
||||
'filamentSku',
|
||||
'filamentSku._id'
|
||||
],
|
||||
sorters: ['createdAt', 'updatedAt', 'filament', 'filamentSku'],
|
||||
group: ['filament', 'filamentSku'],
|
||||
properties: [
|
||||
@ -107,7 +113,7 @@ export const FilamentStock = {
|
||||
label: 'Stock location',
|
||||
type: 'object',
|
||||
objectType: 'stockLocation',
|
||||
required: false,
|
||||
required: true,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
},
|
||||
|
||||
@ -8,7 +8,7 @@ export const StockEvent = {
|
||||
prefix: 'SEV',
|
||||
icon: StockEventIcon,
|
||||
actions: [],
|
||||
columns: ['_reference', 'owner', 'parent', 'value', 'createdAt'],
|
||||
columns: ['_reference', 'owner', 'parent', 'value', 'createdAt', 'updatedAt'],
|
||||
filters: ['_id', 'owner', 'parent'],
|
||||
sorters: ['createdAt'],
|
||||
properties: [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user