Implemented stock locations.
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
Some checks failed
farmcontrol/farmcontrol-ui/pipeline/head There was a failure building this commit
This commit is contained in:
parent
f289bbb6b2
commit
c57446836e
@ -106,6 +106,8 @@ export const Listing = {
|
|||||||
'_reference',
|
'_reference',
|
||||||
'title',
|
'title',
|
||||||
'product',
|
'product',
|
||||||
|
'vendor',
|
||||||
|
'stockLocation',
|
||||||
'marketplace',
|
'marketplace',
|
||||||
'state',
|
'state',
|
||||||
'price',
|
'price',
|
||||||
@ -118,6 +120,8 @@ export const Listing = {
|
|||||||
'title',
|
'title',
|
||||||
'_id',
|
'_id',
|
||||||
'product',
|
'product',
|
||||||
|
'vendor',
|
||||||
|
'stockLocation',
|
||||||
'marketplace',
|
'marketplace',
|
||||||
'state',
|
'state',
|
||||||
'createdAt',
|
'createdAt',
|
||||||
@ -125,6 +129,7 @@ export const Listing = {
|
|||||||
],
|
],
|
||||||
sorters: [
|
sorters: [
|
||||||
'title',
|
'title',
|
||||||
|
'vendor',
|
||||||
'state',
|
'state',
|
||||||
'price',
|
'price',
|
||||||
'lastSyncedAt',
|
'lastSyncedAt',
|
||||||
@ -132,7 +137,7 @@ export const Listing = {
|
|||||||
'updatedAt',
|
'updatedAt',
|
||||||
'_id'
|
'_id'
|
||||||
],
|
],
|
||||||
group: ['marketplace', 'product'],
|
group: ['marketplace', 'product', 'vendor', 'stockLocation'],
|
||||||
properties: [
|
properties: [
|
||||||
{
|
{
|
||||||
name: '_id',
|
name: '_id',
|
||||||
@ -192,6 +197,26 @@ export const Listing = {
|
|||||||
required: false,
|
required: false,
|
||||||
columnWidth: 200
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'vendor',
|
||||||
|
label: 'Vendor',
|
||||||
|
type: 'object',
|
||||||
|
objectType: 'vendor',
|
||||||
|
showHyperlink: true,
|
||||||
|
readOnly: false,
|
||||||
|
required: true,
|
||||||
|
columnWidth: 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'stockLocation',
|
||||||
|
label: 'Stock Location',
|
||||||
|
type: 'object',
|
||||||
|
objectType: 'stockLocation',
|
||||||
|
showHyperlink: true,
|
||||||
|
readOnly: false,
|
||||||
|
required: true,
|
||||||
|
columnWidth: 200
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'marketplace',
|
name: 'marketplace',
|
||||||
label: 'Marketplace',
|
label: 'Marketplace',
|
||||||
|
|||||||
@ -20,7 +20,7 @@ export const StockLocation = {
|
|||||||
url: (id) => `/dashboard/inventory/stocklocations/info?stockLocationId=${id}`,
|
url: (id) => `/dashboard/inventory/stocklocations/info?stockLocationId=${id}`,
|
||||||
filters: ['_id', 'name'],
|
filters: ['_id', 'name'],
|
||||||
sorters: ['name', 'createdAt'],
|
sorters: ['name', 'createdAt'],
|
||||||
columns: ['_reference', 'name', 'createdAt', 'updatedAt'],
|
columns: ['_reference', 'name', 'address', 'createdAt', 'updatedAt'],
|
||||||
properties: [
|
properties: [
|
||||||
{
|
{
|
||||||
name: '_id',
|
name: '_id',
|
||||||
@ -62,11 +62,12 @@ export const StockLocation = {
|
|||||||
columnWidth: 220
|
columnWidth: 220
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'notes',
|
name: 'address',
|
||||||
label: 'Notes',
|
label: 'Address',
|
||||||
type: 'text',
|
type: 'address',
|
||||||
required: false,
|
readOnly: false,
|
||||||
columnWidth: 280
|
required: true,
|
||||||
|
columnWidth: 250
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
stats: [
|
stats: [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user