Compare commits
No commits in common. "e82d7e10df07629ceb8979d2b6d493882df8da59" and "847e59315487b7b248690f2dc886613a59ee8430" have entirely different histories.
e82d7e10df
...
847e593154
@ -3,15 +3,12 @@
|
||||
<svg width="100%" height="100%" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
||||
<g transform="matrix(0.124,0,0,0.124,1.867256,1)">
|
||||
<path d="M69.43,159.719C69.43,125.199 97.41,97.219 131.922,97.219L486.012,97.219L486.012,458.328C486.012,481.34 467.359,500 444.352,500L152.738,500C106.73,500 69.43,462.691 69.43,416.672L69.43,159.719Z" style="fill:rgb(38,120,43);fill-rule:nonzero;"/>
|
||||
<path d="M69.43,229.172C69.43,194.648 97.41,166.672 131.922,166.672L319.379,166.672C296.371,166.672 277.719,185.328 277.719,208.34L277.719,291.672C277.719,314.68 259.07,333.34 236.059,333.34L152.75,333.34C106.738,333.34 69.441,370.648 69.441,416.672L69.441,229.172L69.43,229.172Z" style="fill:rgb(74,165,70);fill-rule:nonzero;"/>
|
||||
<path d="M69.43,83.328C69.43,37.309 106.73,0 152.738,0L319.371,0L319.371,166.672L152.738,166.672C106.73,166.672 69.43,203.98 69.43,250L69.43,83.328Z" style="fill:rgb(115,218,95);fill-rule:nonzero;"/>
|
||||
<g transform="matrix(1.243478,0,0,1.243478,-118.330239,0)">
|
||||
<path d="M332.245,0L444.34,0C467.348,0 486,18.652 486,41.66L486,125.012C486,148.02 467.348,166.672 444.34,166.672L332.245,166.672C309.237,166.672 290.585,148.02 290.585,125.012L290.585,41.66C290.585,18.652 309.237,0 332.245,0Z" style="fill:rgb(143,233,111);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<g transform="matrix(1.31598,0,0,1.31598,0,-144.822643)">
|
||||
<path d="M319.371,0L444.34,0C467.348,0 486,18.652 486,41.66L486,125.012C486,148.02 467.348,166.672 444.34,166.672L319.371,166.672C296.363,166.672 277.711,148.02 277.711,125.012L277.711,41.66C277.711,18.652 296.363,0 319.371,0Z" style="fill:rgb(143,233,111);fill-rule:nonzero;"/>
|
||||
<g transform="matrix(1.250027,0,0,1.250027,0,-114.594378)">
|
||||
<path d="M45.129,236.109L177.039,236.109C201.965,236.109 222.172,256.316 222.172,281.238L222.172,413.199C222.172,438.125 201.965,458.328 177.039,458.328L45.129,458.328C20.207,458.328 0,438.125 0,413.199L0,281.238C0,256.316 20.207,236.109 45.129,236.109Z" style="fill:rgb(11,78,46);fill-rule:nonzero;"/>
|
||||
<g transform="matrix(1.2548,0,0,1.2548,-33.009557,-88.471875)">
|
||||
<path d="M169.48,410.711L135.23,410.711L113.73,370.238C112.961,368.82 112.371,367.699 111.961,366.871C111.609,365.988 111.219,364.98 110.809,363.859L110.461,363.859C109.93,365.281 109.43,366.43 108.961,367.309C108.488,368.199 107.93,369.289 107.281,370.59L84.98,410.699L52.68,410.699L91.441,347.121L55.34,283.719L89.141,283.719L108.25,319.852C109.02,321.328 109.672,322.629 110.199,323.75C110.789,324.809 111.379,326.078 111.969,327.559L112.32,327.559C113.141,325.852 113.789,324.488 114.27,323.488C114.801,322.488 115.512,321.16 116.391,319.512L136.211,283.738L168.422,283.738L131.789,346.172L169.488,410.719L169.48,410.711Z" style="fill:rgb(254,254,254);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
<path d="M169.48,410.711L135.23,410.711L113.73,370.238C112.961,368.82 112.371,367.699 111.961,366.871C111.609,365.988 111.219,364.98 110.809,363.859L110.461,363.859C109.93,365.281 109.43,366.43 108.961,367.309C108.488,368.199 107.93,369.289 107.281,370.59L84.98,410.699L52.68,410.699L91.441,347.121L55.34,283.719L89.141,283.719L108.25,319.852C109.02,321.328 109.672,322.629 110.199,323.75C110.789,324.809 111.379,326.078 111.969,327.559L112.32,327.559C113.141,325.852 113.789,324.488 114.27,323.488C114.801,322.488 115.512,321.16 116.391,319.512L136.211,283.738L168.422,283.738L131.789,346.172L169.488,410.719L169.48,410.711Z" style="fill:rgb(254,254,254);fill-rule:nonzero;"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.6 KiB |
@ -77,7 +77,7 @@ export const AppPassword = {
|
||||
}
|
||||
}
|
||||
],
|
||||
columns: ['_reference', 'name', 'user', 'active', 'createdAt', 'updatedAt'],
|
||||
columns: ['name', '_reference', 'user', 'active', 'createdAt', 'updatedAt'],
|
||||
filters: ['_id', 'name', 'user', 'active', 'user._id'],
|
||||
sorters: ['name', 'user', 'active', 'createdAt', 'updatedAt'],
|
||||
properties: [
|
||||
@ -87,23 +87,12 @@ export const AppPassword = {
|
||||
columnFixed: 'left',
|
||||
type: 'id',
|
||||
objectType: 'appPassword',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'appPassword',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -111,16 +100,14 @@ export const AppPassword = {
|
||||
label: 'Name',
|
||||
columnFixed: 'left',
|
||||
required: true,
|
||||
type: 'text',
|
||||
columnWidth: 200
|
||||
type: 'text'
|
||||
},
|
||||
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'user',
|
||||
@ -131,15 +118,13 @@ export const AppPassword = {
|
||||
},
|
||||
type: 'object',
|
||||
objectType: 'user',
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'active',
|
||||
label: 'Active',
|
||||
required: true,
|
||||
type: 'bool',
|
||||
columnWidth: 125
|
||||
type: 'bool'
|
||||
},
|
||||
{
|
||||
name: 'secret',
|
||||
@ -148,8 +133,7 @@ export const AppPassword = {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
value: (objectData) =>
|
||||
objectData?._id ? '••••••••••••••••••••••••••••••••' : undefined,
|
||||
columnWidth: 200
|
||||
objectData?._id ? '••••••••••••••••••••••••••••••••' : undefined
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -24,24 +24,13 @@ export const AuditLog = {
|
||||
objectType: 'auditLog',
|
||||
columnFixed: 'left',
|
||||
value: null,
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
value: null,
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'auditLog',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -49,8 +38,7 @@ export const AuditLog = {
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
value: null,
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'owner',
|
||||
@ -62,8 +50,7 @@ export const AuditLog = {
|
||||
columnFixed: 'left',
|
||||
value: null,
|
||||
showCopy: true,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'parent',
|
||||
@ -74,8 +61,7 @@ export const AuditLog = {
|
||||
},
|
||||
value: null,
|
||||
showCopy: true,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'operation',
|
||||
|
||||
@ -68,8 +68,8 @@ export const Client = {
|
||||
}
|
||||
],
|
||||
columns: [
|
||||
'_reference',
|
||||
'name',
|
||||
'_reference',
|
||||
'country',
|
||||
'email',
|
||||
'phone',
|
||||
@ -105,23 +105,12 @@ export const Client = {
|
||||
columnFixed: 'left',
|
||||
type: 'id',
|
||||
objectType: 'client',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'client',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -129,31 +118,27 @@ export const Client = {
|
||||
label: 'Name',
|
||||
columnFixed: 'left',
|
||||
required: true,
|
||||
type: 'text',
|
||||
columnWidth: 200
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'active',
|
||||
label: 'Active',
|
||||
type: 'bool',
|
||||
readOnly: false,
|
||||
required: true,
|
||||
columnWidth: 125
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'country',
|
||||
label: 'Country',
|
||||
type: 'country',
|
||||
readOnly: false,
|
||||
required: false,
|
||||
columnWidth: 150
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'email',
|
||||
@ -168,24 +153,21 @@ export const Client = {
|
||||
label: 'Phone',
|
||||
type: 'phone',
|
||||
readOnly: false,
|
||||
required: false,
|
||||
columnWidth: 140
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'tags',
|
||||
label: 'Tags',
|
||||
type: 'tags',
|
||||
readOnly: false,
|
||||
required: false,
|
||||
columnWidth: 200
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'address',
|
||||
label: 'Address',
|
||||
type: 'address',
|
||||
readOnly: false,
|
||||
required: false,
|
||||
columnWidth: 250
|
||||
required: false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ export const Courier = {
|
||||
`/dashboard/management/couriers/info?courierId=${_id}&action=delete`
|
||||
}
|
||||
],
|
||||
columns: ['_reference', 'name', 'country', 'email', 'website', 'createdAt'],
|
||||
columns: ['name', '_reference', 'country', 'email', 'website', 'createdAt'],
|
||||
filters: ['name', '_id', 'country', 'email'],
|
||||
sorters: ['name', 'country', 'email', 'createdAt', '_id'],
|
||||
group: ['country'],
|
||||
@ -79,23 +79,12 @@ export const Courier = {
|
||||
columnFixed: 'left',
|
||||
type: 'id',
|
||||
objectType: 'courier',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'courier',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -103,31 +92,27 @@ export const Courier = {
|
||||
label: 'Name',
|
||||
columnFixed: 'left',
|
||||
required: true,
|
||||
type: 'text',
|
||||
columnWidth: 200
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'contact',
|
||||
label: 'Contact',
|
||||
type: 'text',
|
||||
readOnly: false,
|
||||
required: false,
|
||||
columnWidth: 150
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'country',
|
||||
label: 'Country',
|
||||
type: 'country',
|
||||
readOnly: false,
|
||||
required: false,
|
||||
columnWidth: 150
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'email',
|
||||
@ -142,8 +127,7 @@ export const Courier = {
|
||||
label: 'Phone',
|
||||
type: 'phone',
|
||||
readOnly: false,
|
||||
required: false,
|
||||
columnWidth: 140
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'website',
|
||||
|
||||
@ -70,8 +70,8 @@ export const CourierService = {
|
||||
}
|
||||
],
|
||||
columns: [
|
||||
'_reference',
|
||||
'name',
|
||||
'_reference',
|
||||
'courier',
|
||||
'tracked',
|
||||
'deliveryTime',
|
||||
@ -95,23 +95,12 @@ export const CourierService = {
|
||||
columnFixed: 'left',
|
||||
type: 'id',
|
||||
objectType: 'courierService',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'courierService',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -119,15 +108,13 @@ export const CourierService = {
|
||||
label: 'Name',
|
||||
columnFixed: 'left',
|
||||
required: true,
|
||||
type: 'text',
|
||||
columnWidth: 200
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'courier',
|
||||
@ -135,8 +122,7 @@ export const CourierService = {
|
||||
type: 'object',
|
||||
objectType: 'courier',
|
||||
showHyperlink: true,
|
||||
required: true,
|
||||
columnWidth: 200
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'deliveryTime',
|
||||
@ -153,7 +139,7 @@ export const CourierService = {
|
||||
type: 'bool',
|
||||
readOnly: false,
|
||||
required: true,
|
||||
columnWidth: 125
|
||||
columnWidth: 150
|
||||
},
|
||||
{
|
||||
name: 'tracked',
|
||||
|
||||
@ -61,7 +61,7 @@ export const DocumentJob = {
|
||||
}
|
||||
}
|
||||
],
|
||||
columns: ['_reference', 'name', 'state', 'createdAt', 'updatedAt'],
|
||||
columns: ['name', '_reference', 'state', 'createdAt', 'updatedAt'],
|
||||
filters: ['name', '_id', 'state'],
|
||||
sorters: ['name', 'state', 'createdAt', 'updatedAt'],
|
||||
properties: [
|
||||
@ -70,23 +70,12 @@ export const DocumentJob = {
|
||||
label: 'ID',
|
||||
type: 'id',
|
||||
objectType: 'documentJob',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'documentJob',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -106,8 +95,7 @@ export const DocumentJob = {
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'state',
|
||||
@ -115,8 +103,7 @@ export const DocumentJob = {
|
||||
type: 'state',
|
||||
objectType: 'printer',
|
||||
showName: false,
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'objectType',
|
||||
|
||||
@ -61,8 +61,8 @@ export const DocumentPrinter = {
|
||||
}
|
||||
],
|
||||
columns: [
|
||||
'_reference',
|
||||
'name',
|
||||
'_reference',
|
||||
'state',
|
||||
'host',
|
||||
'tags',
|
||||
@ -77,23 +77,12 @@ export const DocumentPrinter = {
|
||||
label: 'ID',
|
||||
type: 'id',
|
||||
objectType: 'documentPrinter',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'documentPrinter',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -108,8 +97,7 @@ export const DocumentPrinter = {
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'state',
|
||||
@ -117,29 +105,25 @@ export const DocumentPrinter = {
|
||||
type: 'state',
|
||||
objectType: 'printer',
|
||||
showName: false,
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'connectedAt',
|
||||
label: 'Connected At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'online',
|
||||
label: 'Online',
|
||||
type: 'bool',
|
||||
readOnly: true,
|
||||
columnWidth: 85
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'active',
|
||||
label: 'Active',
|
||||
type: 'bool',
|
||||
required: true,
|
||||
columnWidth: 125
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'vendor',
|
||||
@ -147,8 +131,7 @@ export const DocumentPrinter = {
|
||||
type: 'object',
|
||||
objectType: 'vendor',
|
||||
required: false,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'host',
|
||||
@ -156,8 +139,7 @@ export const DocumentPrinter = {
|
||||
required: true,
|
||||
type: 'object',
|
||||
objectType: 'host',
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'connection.interface',
|
||||
@ -168,8 +150,7 @@ export const DocumentPrinter = {
|
||||
{ label: 'Epson Receipt', value: 'epsonReceipt' },
|
||||
{ label: 'Star Receipt', value: 'starReceipt' }
|
||||
],
|
||||
required: true,
|
||||
columnWidth: 150
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'connection.protocol',
|
||||
@ -188,15 +169,13 @@ export const DocumentPrinter = {
|
||||
{ label: 'System', value: 'system' }
|
||||
]
|
||||
},
|
||||
required: true,
|
||||
columnWidth: 130
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'connection.host',
|
||||
label: 'Host Name',
|
||||
type: 'text',
|
||||
required: true,
|
||||
columnWidth: 180
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'connection.port',
|
||||
@ -208,8 +187,7 @@ export const DocumentPrinter = {
|
||||
objectData?.connection?.protocol == 'system' ||
|
||||
objectData?.connection?.protocol == 'serial'
|
||||
)
|
||||
},
|
||||
columnWidth: 85
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'currentDocumentSize',
|
||||
@ -217,15 +195,13 @@ export const DocumentPrinter = {
|
||||
required: false,
|
||||
type: 'object',
|
||||
objectType: 'documentSize',
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'tags',
|
||||
label: 'Tags',
|
||||
required: false,
|
||||
type: 'tags',
|
||||
columnWidth: 200
|
||||
type: 'tags'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -61,8 +61,8 @@ export const DocumentSize = {
|
||||
}
|
||||
],
|
||||
columns: [
|
||||
'_reference',
|
||||
'name',
|
||||
'_reference',
|
||||
'width',
|
||||
'height',
|
||||
'infiniteHeight',
|
||||
@ -84,23 +84,12 @@ export const DocumentSize = {
|
||||
label: 'ID',
|
||||
type: 'id',
|
||||
objectType: 'documentSize',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'documentSize',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -115,8 +104,7 @@ export const DocumentSize = {
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'width',
|
||||
|
||||
@ -70,8 +70,8 @@ export const DocumentTemplate = {
|
||||
}
|
||||
],
|
||||
columns: [
|
||||
'_reference',
|
||||
'name',
|
||||
'_reference',
|
||||
'active',
|
||||
'global',
|
||||
'objectType',
|
||||
@ -99,23 +99,12 @@ export const DocumentTemplate = {
|
||||
label: 'ID',
|
||||
type: 'id',
|
||||
objectType: 'documentTemplate',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'documentTemplate',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -130,15 +119,13 @@ export const DocumentTemplate = {
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'objectType',
|
||||
label: 'Object Type',
|
||||
required: true,
|
||||
type: 'objectType',
|
||||
columnWidth: 150,
|
||||
empty: (documentTemplate) => {
|
||||
return documentTemplate.global
|
||||
}
|
||||
@ -148,14 +135,13 @@ export const DocumentTemplate = {
|
||||
label: 'Active',
|
||||
required: true,
|
||||
type: 'bool',
|
||||
columnWidth: 125
|
||||
columnWidth: 150
|
||||
},
|
||||
{
|
||||
name: 'tags',
|
||||
label: 'Tags',
|
||||
required: false,
|
||||
type: 'tags',
|
||||
columnWidth: 200
|
||||
type: 'tags'
|
||||
},
|
||||
{
|
||||
name: 'global',
|
||||
@ -170,8 +156,7 @@ export const DocumentTemplate = {
|
||||
required: true,
|
||||
type: 'object',
|
||||
objectType: 'documentSize',
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'parent',
|
||||
@ -181,7 +166,6 @@ export const DocumentTemplate = {
|
||||
masterFilter: { global: true, active: true },
|
||||
objectType: 'documentTemplate',
|
||||
showHyperlink: true,
|
||||
columnWidth: 200,
|
||||
empty: (documentTemplate) => {
|
||||
return documentTemplate.global
|
||||
}
|
||||
|
||||
@ -91,12 +91,11 @@ export const Filament = {
|
||||
'density',
|
||||
'diameter',
|
||||
'cost',
|
||||
'costWithTax',
|
||||
'createdAt',
|
||||
'updatedAt'
|
||||
],
|
||||
filters: ['_id', 'name', 'material', 'cost', 'costWithTax'],
|
||||
sorters: ['name', 'createdAt', 'material', 'cost', 'costWithTax', 'updatedAt'],
|
||||
filters: ['_id', 'name', 'material'],
|
||||
sorters: ['name', 'createdAt', 'material', 'updatedAt'],
|
||||
group: ['diameter', 'material'],
|
||||
properties: [
|
||||
{
|
||||
@ -105,23 +104,12 @@ export const Filament = {
|
||||
columnFixed: 'left',
|
||||
type: 'id',
|
||||
objectType: 'filament',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'filament',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -129,15 +117,13 @@ export const Filament = {
|
||||
label: 'Name',
|
||||
columnFixed: 'left',
|
||||
required: true,
|
||||
type: 'text',
|
||||
columnWidth: 200
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'material',
|
||||
@ -176,7 +162,7 @@ export const Filament = {
|
||||
name: 'cost',
|
||||
label: 'Cost',
|
||||
required: false,
|
||||
columnWidth: 100,
|
||||
columnWidth: 120,
|
||||
type: 'number',
|
||||
prefix: '£',
|
||||
min: 0,
|
||||
@ -191,7 +177,6 @@ export const Filament = {
|
||||
prefix: '£',
|
||||
min: 0,
|
||||
step: 0.01,
|
||||
columnWidth: 150,
|
||||
value: (objectData) => {
|
||||
const cost = objectData?.cost
|
||||
if (!cost) return undefined
|
||||
@ -212,22 +197,19 @@ export const Filament = {
|
||||
required: false,
|
||||
type: 'object',
|
||||
objectType: 'taxRate',
|
||||
showHyperlink: true,
|
||||
columnWidth: 150
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'url',
|
||||
label: 'Link',
|
||||
required: false,
|
||||
type: 'url',
|
||||
columnWidth: 300
|
||||
type: 'url'
|
||||
},
|
||||
{
|
||||
name: 'barcode',
|
||||
label: 'Barcode',
|
||||
required: false,
|
||||
type: 'text',
|
||||
columnWidth: 150
|
||||
type: 'text'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -78,7 +78,6 @@ export const FilamentSku = {
|
||||
'color',
|
||||
'overrideCost',
|
||||
'cost',
|
||||
'costWithTax',
|
||||
'createdAt',
|
||||
'updatedAt'
|
||||
],
|
||||
@ -89,8 +88,7 @@ export const FilamentSku = {
|
||||
'filament._id',
|
||||
'name',
|
||||
'color',
|
||||
'cost',
|
||||
'costWithTax'
|
||||
'cost'
|
||||
],
|
||||
sorters: [
|
||||
'barcode',
|
||||
@ -98,7 +96,6 @@ export const FilamentSku = {
|
||||
'name',
|
||||
'color',
|
||||
'cost',
|
||||
'costWithTax',
|
||||
'createdAt',
|
||||
'updatedAt'
|
||||
],
|
||||
@ -109,39 +106,25 @@ export const FilamentSku = {
|
||||
type: 'id',
|
||||
objectType: 'filamentSku',
|
||||
showCopy: true,
|
||||
readOnly: true,
|
||||
columnWidth: 140
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'filamentSku',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'name',
|
||||
label: 'Name',
|
||||
required: true,
|
||||
type: 'text',
|
||||
columnWidth: 200,
|
||||
columnFixed: 'left'
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'filament',
|
||||
@ -149,37 +132,32 @@ export const FilamentSku = {
|
||||
type: 'object',
|
||||
objectType: 'filament',
|
||||
required: true,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'barcode',
|
||||
label: 'Barcode',
|
||||
required: false,
|
||||
type: 'text',
|
||||
columnWidth: 150
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'description',
|
||||
label: 'Description',
|
||||
required: false,
|
||||
type: 'text',
|
||||
columnWidth: 200
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'color',
|
||||
label: 'Color',
|
||||
required: true,
|
||||
type: 'color',
|
||||
columnWidth: 120
|
||||
type: 'color'
|
||||
},
|
||||
{
|
||||
name: 'overrideCost',
|
||||
label: 'Override Cost',
|
||||
required: false,
|
||||
type: 'bool',
|
||||
value: (objectData) => objectData?.overrideCost ?? false,
|
||||
columnWidth: 150
|
||||
value: (objectData) => objectData?.overrideCost ?? false
|
||||
},
|
||||
{
|
||||
name: 'cost',
|
||||
@ -191,8 +169,7 @@ export const FilamentSku = {
|
||||
step: 0.01,
|
||||
disabled: (objectData) => !objectData?.overrideCost,
|
||||
value: (objectData) =>
|
||||
objectData?.overrideCost ? objectData?.cost : undefined,
|
||||
columnWidth: 100
|
||||
objectData?.overrideCost ? objectData?.cost : undefined
|
||||
},
|
||||
{
|
||||
name: 'costWithTax',
|
||||
@ -215,8 +192,7 @@ export const FilamentSku = {
|
||||
return (cost + taxRate?.rate).toFixed(2) || undefined
|
||||
}
|
||||
return cost
|
||||
},
|
||||
columnWidth: 150
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'costTaxRate',
|
||||
@ -227,8 +203,7 @@ export const FilamentSku = {
|
||||
showHyperlink: true,
|
||||
disabled: (objectData) => !objectData?.overrideCost,
|
||||
value: (objectData) =>
|
||||
objectData?.overrideCost ? objectData?.costTaxRate : undefined,
|
||||
columnWidth: 150
|
||||
objectData?.overrideCost ? objectData?.costTaxRate : undefined
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -36,23 +36,12 @@ export const FilamentStock = {
|
||||
type: 'id',
|
||||
columnFixed: 'left',
|
||||
objectType: 'filamentStock',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'filamentStock',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -60,15 +49,13 @@ export const FilamentStock = {
|
||||
label: 'State',
|
||||
type: 'state',
|
||||
objectType: 'filamentStock',
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'filamentSku',
|
||||
@ -78,8 +65,7 @@ export const FilamentStock = {
|
||||
readOnly: true,
|
||||
initial: true,
|
||||
required: true,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'currentWeight',
|
||||
|
||||
@ -78,7 +78,7 @@ export const File = {
|
||||
}
|
||||
],
|
||||
url: (id) => `/dashboard/management/files/info?fileId=${id}`,
|
||||
columns: ['_reference', 'name', 'type', 'size', 'temp', 'createdAt'],
|
||||
columns: ['name', '_reference', 'type', 'size', 'temp', 'createdAt'],
|
||||
filters: ['name', '_id', 'type', 'temp'],
|
||||
sorters: ['name', 'type', 'size', 'createdAt', 'temp'],
|
||||
group: ['type'],
|
||||
@ -89,23 +89,12 @@ export const File = {
|
||||
columnFixed: 'left',
|
||||
type: 'id',
|
||||
objectType: 'file',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'file',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -113,23 +102,20 @@ export const File = {
|
||||
label: 'Name',
|
||||
columnFixed: 'left',
|
||||
required: true,
|
||||
type: 'text',
|
||||
columnWidth: 200
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'type',
|
||||
label: 'Type',
|
||||
type: 'text',
|
||||
readOnly: true,
|
||||
required: true,
|
||||
columnWidth: 120
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'size',
|
||||
@ -155,8 +141,7 @@ export const File = {
|
||||
if (size < 1024 * 1024 * 1024) return size / (1024 * 1024)
|
||||
if (size < 1024 * 1024 * 1024 * 1024) return size / (1024 * 1024 * 1024)
|
||||
return size / (1024 * 1024 * 1024 * 1024)
|
||||
},
|
||||
columnWidth: 100
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'metaData',
|
||||
|
||||
@ -69,10 +69,9 @@ export const GCodeFile = {
|
||||
],
|
||||
|
||||
columns: [
|
||||
'_reference',
|
||||
'name',
|
||||
'_reference',
|
||||
'filamentSku',
|
||||
'cost',
|
||||
'gcodeFileInfo.estimatedPrintingTimeNormalMode',
|
||||
'gcodeFileInfo.sparseInfillDensity',
|
||||
'gcodeFileInfo.sparseInfillPattern',
|
||||
@ -80,8 +79,8 @@ export const GCodeFile = {
|
||||
'gcodeFileInfo.hotPlateTemp',
|
||||
'updatedAt'
|
||||
],
|
||||
filters: ['_id', 'name', 'cost', 'updatedAt'],
|
||||
sorters: ['name', 'cost', 'createdAt', 'updatedAt'],
|
||||
filters: ['_id', 'name', 'updatedAt'],
|
||||
sorters: ['name', 'createdAt', 'updatedAt'],
|
||||
group: ['filamentSku'],
|
||||
properties: [
|
||||
{
|
||||
@ -91,24 +90,13 @@ export const GCodeFile = {
|
||||
objectType: 'gcodeFile',
|
||||
columnFixed: 'left',
|
||||
value: null,
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
value: null,
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'gcodeFile',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -117,16 +105,14 @@ export const GCodeFile = {
|
||||
columnFixed: 'left',
|
||||
type: 'text',
|
||||
value: null,
|
||||
required: true,
|
||||
columnWidth: 200
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
value: null,
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'file',
|
||||
@ -136,8 +122,7 @@ export const GCodeFile = {
|
||||
required: true,
|
||||
showPreview: false,
|
||||
showHyperlink: true,
|
||||
filter: ['.gcode', '.g'],
|
||||
columnWidth: 200
|
||||
filter: ['.gcode', '.g']
|
||||
},
|
||||
{
|
||||
name: 'filamentSku',
|
||||
@ -146,8 +131,7 @@ export const GCodeFile = {
|
||||
value: null,
|
||||
objectType: 'filamentSku',
|
||||
required: true,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'cost',
|
||||
@ -162,16 +146,14 @@ export const GCodeFile = {
|
||||
return objectData.file.metaData.filamentUsedG * (costPerKg / 1000)
|
||||
},
|
||||
readOnly: true,
|
||||
prefix: '£',
|
||||
columnWidth: 100
|
||||
prefix: '£'
|
||||
},
|
||||
{
|
||||
name: 'file.metaData.filamentUsedG',
|
||||
label: 'Est Print Time',
|
||||
value: null,
|
||||
type: 'text',
|
||||
readOnly: true,
|
||||
columnWidth: 130
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'file.metaData.sparseInfillDensity',
|
||||
@ -184,24 +166,21 @@ export const GCodeFile = {
|
||||
name: 'file.metaData.sparseInfillPattern',
|
||||
label: 'Infill Pattern',
|
||||
type: 'text',
|
||||
readOnly: true,
|
||||
columnWidth: 150
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'file.metaData.filamentUsedMm',
|
||||
label: 'Filament Used (mm)',
|
||||
type: 'number',
|
||||
readOnly: true,
|
||||
suffix: 'mm',
|
||||
columnWidth: 160
|
||||
suffix: 'mm'
|
||||
},
|
||||
{
|
||||
name: 'file.metaData.filamentUsedG',
|
||||
label: 'Filament Used (g)',
|
||||
type: 'number',
|
||||
suffix: 'g',
|
||||
readOnly: true,
|
||||
columnWidth: 150
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'file.metaData.nozzleTemperature',
|
||||
@ -223,15 +202,13 @@ export const GCodeFile = {
|
||||
name: 'file.metaData.filamentSettingsId',
|
||||
label: 'Filament Profile',
|
||||
type: 'text',
|
||||
readOnly: true,
|
||||
columnWidth: 150
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'file.metaData.printSettingsId',
|
||||
label: 'Print Profile',
|
||||
type: 'text',
|
||||
readOnly: true,
|
||||
columnWidth: 150
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'parts',
|
||||
|
||||
@ -70,7 +70,7 @@ export const Host = {
|
||||
`/dashboard/management/hosts/info?hostId=${_id}&action=hostOTP`
|
||||
}
|
||||
],
|
||||
columns: ['_reference', 'name', 'state', 'tags', 'connectedAt'],
|
||||
columns: ['name', '_reference', 'state', 'tags', 'connectedAt'],
|
||||
filters: ['name', '_id', 'state', 'tags'],
|
||||
sorters: ['name', 'state', 'connectedAt'],
|
||||
group: ['tags'],
|
||||
@ -80,23 +80,12 @@ export const Host = {
|
||||
label: 'ID',
|
||||
type: 'id',
|
||||
objectType: 'host',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'host',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -111,8 +100,7 @@ export const Host = {
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'state',
|
||||
@ -120,29 +108,25 @@ export const Host = {
|
||||
type: 'state',
|
||||
objectType: 'host',
|
||||
showName: false,
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'connectedAt',
|
||||
label: 'Connected At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'online',
|
||||
label: 'Online',
|
||||
type: 'bool',
|
||||
readOnly: true,
|
||||
columnWidth: 150
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'active',
|
||||
label: 'Active',
|
||||
type: 'bool',
|
||||
required: true,
|
||||
columnWidth: 125
|
||||
required: true
|
||||
},
|
||||
|
||||
{
|
||||
@ -151,7 +135,6 @@ export const Host = {
|
||||
type: 'text',
|
||||
required: false,
|
||||
readOnly: true,
|
||||
columnWidth: 220,
|
||||
value: (objectData) => {
|
||||
if (
|
||||
objectData.deviceInfo?.os?.type &&
|
||||
@ -167,16 +150,14 @@ export const Host = {
|
||||
label: 'Hostname',
|
||||
type: 'text',
|
||||
required: false,
|
||||
readOnly: true,
|
||||
columnWidth: 180
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'deviceInfo.cpu.model',
|
||||
label: 'CPU Model',
|
||||
type: 'text',
|
||||
required: false,
|
||||
readOnly: true,
|
||||
columnWidth: 200
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'deviceInfo.cpu',
|
||||
@ -184,7 +165,6 @@ export const Host = {
|
||||
type: 'text',
|
||||
required: false,
|
||||
readOnly: true,
|
||||
columnWidth: 150,
|
||||
value: (objectData) => {
|
||||
if (
|
||||
objectData.deviceInfo?.cpu?.cores &&
|
||||
@ -199,31 +179,27 @@ export const Host = {
|
||||
label: 'User',
|
||||
type: 'text',
|
||||
required: false,
|
||||
readOnly: true,
|
||||
columnWidth: 120
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'deviceInfo.user.homedir',
|
||||
label: 'User Home',
|
||||
type: 'text',
|
||||
required: false,
|
||||
readOnly: true,
|
||||
columnWidth: 200
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'deviceInfo.process.nodeVersion',
|
||||
label: 'NodeJS Version',
|
||||
type: 'text',
|
||||
required: false,
|
||||
readOnly: true,
|
||||
columnWidth: 150
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'tags',
|
||||
label: 'Tags',
|
||||
type: 'tags',
|
||||
required: false,
|
||||
columnWidth: 200
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'files',
|
||||
@ -231,8 +207,7 @@ export const Host = {
|
||||
type: 'objectList',
|
||||
objectType: 'file',
|
||||
required: false,
|
||||
readOnly: true,
|
||||
columnWidth: 200
|
||||
readOnly: true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -163,8 +163,7 @@ export const Invoice = {
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
@ -174,45 +173,34 @@ export const Invoice = {
|
||||
required: true,
|
||||
objectType: 'invoice',
|
||||
showCopy: true,
|
||||
readOnly: true,
|
||||
columnWidth: 140
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: 'state',
|
||||
label: 'State',
|
||||
type: 'state',
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
readOnly: true
|
||||
},
|
||||
{ name: 'state', label: 'State', type: 'state', readOnly: true },
|
||||
{
|
||||
name: 'issuedAt',
|
||||
label: 'Issued At',
|
||||
type: 'dateTime',
|
||||
readOnly: false,
|
||||
required: true,
|
||||
columnWidth: 175
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'orderType',
|
||||
label: 'Order Type',
|
||||
type: 'objectType',
|
||||
masterFilter: ['purchaseOrder', 'salesOrder'],
|
||||
required: true,
|
||||
columnWidth: 150
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'dueAt',
|
||||
label: 'Due At',
|
||||
type: 'dateTime',
|
||||
required: true,
|
||||
columnWidth: 175
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'order',
|
||||
@ -222,15 +210,13 @@ export const Invoice = {
|
||||
return objectData?.orderType
|
||||
},
|
||||
required: true,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'postedAt',
|
||||
label: 'Posted At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'from',
|
||||
@ -240,7 +226,6 @@ export const Invoice = {
|
||||
objectType: 'vendor',
|
||||
showHyperlink: true,
|
||||
readOnly: true,
|
||||
columnWidth: 200,
|
||||
value: (objectData) => {
|
||||
if (objectData?.orderType == 'purchaseOrder') {
|
||||
return objectData?.order?.vendor
|
||||
@ -254,8 +239,7 @@ export const Invoice = {
|
||||
name: 'acknowledgedAt',
|
||||
label: 'Acknowledged At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
|
||||
{
|
||||
@ -266,7 +250,6 @@ export const Invoice = {
|
||||
objectType: 'client',
|
||||
showHyperlink: true,
|
||||
readOnly: true,
|
||||
columnWidth: 200,
|
||||
value: (objectData) => {
|
||||
if (objectData?.orderType == 'salesOrder') {
|
||||
return objectData?.to
|
||||
@ -279,8 +262,7 @@ export const Invoice = {
|
||||
name: 'cancelledAt',
|
||||
label: 'Cancelled At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
|
||||
{
|
||||
@ -296,8 +278,7 @@ export const Invoice = {
|
||||
name: 'paidAt',
|
||||
label: 'Paid At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'totalAmountWithTax',
|
||||
|
||||
@ -47,23 +47,12 @@ export const Job = {
|
||||
type: 'id',
|
||||
columnFixed: 'left',
|
||||
objectType: 'job',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'job',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -82,8 +71,7 @@ export const Job = {
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'quantity',
|
||||
@ -97,29 +85,26 @@ export const Job = {
|
||||
name: 'startedAt',
|
||||
label: 'Started At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'printers',
|
||||
label: 'Printers',
|
||||
type: 'objectList',
|
||||
objectType: 'printer',
|
||||
required: true,
|
||||
columnWidth: 200
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'finishedAt',
|
||||
label: 'Finished At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'gcodeFile',
|
||||
label: 'GCode File',
|
||||
type: 'object',
|
||||
columnWidth: 200,
|
||||
|
||||
objectType: 'gcodeFile',
|
||||
required: true,
|
||||
showHyperlink: true
|
||||
@ -128,7 +113,6 @@ export const Job = {
|
||||
name: 'totalTime',
|
||||
label: 'Total Time',
|
||||
type: 'text',
|
||||
columnWidth: 110,
|
||||
readOnly: true,
|
||||
value: (objectData) => {
|
||||
if (!objectData?.startedAt || !objectData?.finishedAt) {
|
||||
|
||||
@ -80,23 +80,12 @@ export const Material = {
|
||||
columnFixed: 'left',
|
||||
type: 'id',
|
||||
objectType: 'material',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'material',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -104,29 +93,25 @@ export const Material = {
|
||||
label: 'Name',
|
||||
columnFixed: 'left',
|
||||
required: true,
|
||||
type: 'text',
|
||||
columnWidth: 200
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'tags',
|
||||
label: 'Tags',
|
||||
required: false,
|
||||
type: 'tags',
|
||||
columnWidth: 200
|
||||
type: 'tags'
|
||||
},
|
||||
{
|
||||
name: 'url',
|
||||
label: 'Link',
|
||||
required: false,
|
||||
type: 'url',
|
||||
columnWidth: 300
|
||||
type: 'url'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -58,7 +58,7 @@ export const NoteType = {
|
||||
}
|
||||
}
|
||||
],
|
||||
columns: ['_reference', 'name', 'color', 'active', 'createdAt', 'updatedAt'],
|
||||
columns: ['name', '_reference', 'color', 'active', 'createdAt', 'updatedAt'],
|
||||
filters: ['name', '_id', 'color', 'active'],
|
||||
sorters: ['name', 'color', 'active', 'createdAt', 'updatedAt'],
|
||||
properties: [
|
||||
@ -67,53 +67,37 @@ export const NoteType = {
|
||||
label: 'ID',
|
||||
type: 'id',
|
||||
objectType: 'noteType',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'noteType',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'name',
|
||||
label: 'Name',
|
||||
required: true,
|
||||
type: 'text',
|
||||
columnWidth: 200,
|
||||
columnFixed: 'left'
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'color',
|
||||
label: 'Color',
|
||||
required: false,
|
||||
type: 'color',
|
||||
columnWidth: 120
|
||||
type: 'color'
|
||||
},
|
||||
{
|
||||
name: 'active',
|
||||
label: 'Active',
|
||||
required: true,
|
||||
type: 'bool',
|
||||
columnWidth: 125
|
||||
type: 'bool'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -119,8 +119,7 @@ export const OrderItem = {
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
@ -129,23 +128,19 @@ export const OrderItem = {
|
||||
columnFixed: 'left',
|
||||
objectType: 'orderItem',
|
||||
showCopy: true,
|
||||
readOnly: true,
|
||||
columnWidth: 140
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'name',
|
||||
label: 'Name',
|
||||
type: 'text',
|
||||
readOnly: true,
|
||||
columnWidth: 200,
|
||||
columnFixed: 'left',
|
||||
value: (objectData) => {
|
||||
return objectData?.sku?.name ?? objectData?.item?.name
|
||||
}
|
||||
@ -155,23 +150,15 @@ export const OrderItem = {
|
||||
label: 'Ordered At',
|
||||
type: 'dateTime',
|
||||
required: false,
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: 'state',
|
||||
label: 'State',
|
||||
type: 'state',
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
readOnly: true
|
||||
},
|
||||
{ name: 'state', label: 'State', type: 'state', readOnly: true },
|
||||
{
|
||||
name: 'receivedAt',
|
||||
label: 'Received At',
|
||||
type: 'dateTime',
|
||||
required: false,
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'orderType',
|
||||
@ -189,8 +176,7 @@ export const OrderItem = {
|
||||
objectType: (objectData) => {
|
||||
return objectData?.orderType
|
||||
},
|
||||
required: true,
|
||||
columnWidth: 200
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'shipment',
|
||||
@ -261,7 +247,7 @@ export const OrderItem = {
|
||||
name: 'syncAmount',
|
||||
label: 'Sync Amount',
|
||||
type: 'select',
|
||||
columnWidth: 150,
|
||||
|
||||
options: [
|
||||
{ label: 'Item Cost', value: 'itemCost' },
|
||||
{ label: 'Item Price', value: 'itemPrice' },
|
||||
@ -339,7 +325,6 @@ export const OrderItem = {
|
||||
type: 'object',
|
||||
objectType: 'taxRate',
|
||||
showHyperlink: true,
|
||||
columnWidth: 150,
|
||||
value: (objectData) => {
|
||||
const sku = objectData?.sku
|
||||
const item = objectData?.item
|
||||
|
||||
@ -71,19 +71,9 @@ export const Part = {
|
||||
}
|
||||
}
|
||||
],
|
||||
columns: [
|
||||
'_reference',
|
||||
'name',
|
||||
'cost',
|
||||
'costWithTax',
|
||||
'priceMode',
|
||||
'price',
|
||||
'priceWithTax',
|
||||
'createdAt',
|
||||
'updatedAt'
|
||||
],
|
||||
filters: ['name', '_id', 'priceMode', 'cost', 'costWithTax', 'price', 'priceWithTax'],
|
||||
sorters: ['name', 'priceMode', 'cost', 'costWithTax', 'price', 'priceWithTax', 'createdAt', 'updatedAt', '_id'],
|
||||
columns: ['name', '_reference', 'cost', 'price', 'createdAt'],
|
||||
filters: ['name', '_id'],
|
||||
sorters: ['name', 'createdAt', '_id'],
|
||||
properties: [
|
||||
{
|
||||
name: '_id',
|
||||
@ -92,23 +82,12 @@ export const Part = {
|
||||
type: 'id',
|
||||
objectType: 'part',
|
||||
showCopy: true,
|
||||
readOnly: true,
|
||||
columnWidth: 140
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'part',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -116,22 +95,19 @@ export const Part = {
|
||||
label: 'Name',
|
||||
columnFixed: 'left',
|
||||
required: true,
|
||||
type: 'text',
|
||||
columnWidth: 200
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'fileName',
|
||||
label: 'File Name',
|
||||
required: false,
|
||||
type: 'text',
|
||||
columnWidth: 200
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'file',
|
||||
@ -148,8 +124,7 @@ export const Part = {
|
||||
type: 'number',
|
||||
prefix: '£',
|
||||
min: 0,
|
||||
step: 0.01,
|
||||
columnWidth: 100
|
||||
step: 0.01
|
||||
},
|
||||
{
|
||||
name: 'costWithTax',
|
||||
@ -160,7 +135,6 @@ export const Part = {
|
||||
prefix: '£',
|
||||
min: 0,
|
||||
step: 0.01,
|
||||
columnWidth: 150,
|
||||
value: (objectData) => {
|
||||
const cost = objectData?.cost
|
||||
if (!cost) return undefined
|
||||
@ -181,14 +155,12 @@ export const Part = {
|
||||
required: false,
|
||||
type: 'object',
|
||||
objectType: 'taxRate',
|
||||
showHyperlink: true,
|
||||
columnWidth: 150
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'priceMode',
|
||||
label: 'Price Mode',
|
||||
required: false,
|
||||
columnWidth: 150,
|
||||
type: 'priceMode'
|
||||
},
|
||||
{
|
||||
@ -199,7 +171,6 @@ export const Part = {
|
||||
prefix: '£',
|
||||
min: 0,
|
||||
step: 0.1,
|
||||
columnWidth: 100,
|
||||
readOnly: (objectData) => objectData?.priceMode == 'margin',
|
||||
value: (objectData) => {
|
||||
if (
|
||||
@ -225,8 +196,7 @@ export const Part = {
|
||||
suffix: '%',
|
||||
min: 0,
|
||||
max: 100,
|
||||
step: 0.01,
|
||||
columnWidth: 85
|
||||
step: 0.01
|
||||
},
|
||||
{
|
||||
name: 'priceWithTax',
|
||||
@ -237,7 +207,6 @@ export const Part = {
|
||||
prefix: '£',
|
||||
min: 0,
|
||||
step: 0.01,
|
||||
columnWidth: 150,
|
||||
value: (objectData) => {
|
||||
let price
|
||||
if (
|
||||
@ -256,9 +225,7 @@ export const Part = {
|
||||
undefined
|
||||
)
|
||||
} else if (objectData?.priceTaxRate?.rateType == 'amount') {
|
||||
return (
|
||||
(price + objectData?.priceTaxRate?.rate).toFixed(2) || undefined
|
||||
)
|
||||
return (price + objectData?.priceTaxRate?.rate).toFixed(2) || undefined
|
||||
}
|
||||
return price
|
||||
}
|
||||
@ -269,8 +236,7 @@ export const Part = {
|
||||
required: false,
|
||||
type: 'object',
|
||||
objectType: 'taxRate',
|
||||
showHyperlink: true,
|
||||
columnWidth: 150
|
||||
showHyperlink: true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -76,22 +76,18 @@ export const PartSku = {
|
||||
'barcode',
|
||||
'overrideCost',
|
||||
'cost',
|
||||
'costWithTax',
|
||||
'overridePrice',
|
||||
'price',
|
||||
'priceWithTax',
|
||||
'createdAt',
|
||||
'updatedAt'
|
||||
],
|
||||
filters: ['_id', 'barcode', 'part', 'part._id', 'name', 'cost', 'costWithTax', 'price', 'priceWithTax'],
|
||||
filters: ['_id', 'barcode', 'part', 'part._id', 'name', 'cost', 'price'],
|
||||
sorters: [
|
||||
'barcode',
|
||||
'part',
|
||||
'name',
|
||||
'cost',
|
||||
'costWithTax',
|
||||
'price',
|
||||
'priceWithTax',
|
||||
'createdAt',
|
||||
'updatedAt'
|
||||
],
|
||||
@ -102,39 +98,25 @@ export const PartSku = {
|
||||
type: 'id',
|
||||
objectType: 'partSku',
|
||||
showCopy: true,
|
||||
readOnly: true,
|
||||
columnWidth: 140
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'partSku',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'name',
|
||||
label: 'Name',
|
||||
required: true,
|
||||
type: 'text',
|
||||
columnWidth: 200,
|
||||
columnFixed: 'left'
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'part',
|
||||
@ -142,45 +124,39 @@ export const PartSku = {
|
||||
type: 'object',
|
||||
objectType: 'part',
|
||||
required: true,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'barcode',
|
||||
label: 'Barcode',
|
||||
required: false,
|
||||
type: 'text',
|
||||
columnWidth: 150
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'description',
|
||||
label: 'Description',
|
||||
required: false,
|
||||
type: 'text',
|
||||
columnWidth: 200
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'priceMode',
|
||||
label: 'Price Mode',
|
||||
required: false,
|
||||
type: 'priceMode',
|
||||
columnWidth: 150
|
||||
type: 'priceMode'
|
||||
},
|
||||
{
|
||||
name: 'overrideCost',
|
||||
label: 'Override Cost',
|
||||
required: false,
|
||||
type: 'bool',
|
||||
value: (objectData) => objectData?.overrideCost ?? false,
|
||||
columnWidth: 150
|
||||
value: (objectData) => objectData?.overrideCost ?? false
|
||||
},
|
||||
{
|
||||
name: 'overridePrice',
|
||||
label: 'Override Price',
|
||||
required: false,
|
||||
type: 'bool',
|
||||
value: (objectData) => objectData?.overridePrice ?? false,
|
||||
columnWidth: 150
|
||||
value: (objectData) => objectData?.overridePrice ?? false
|
||||
},
|
||||
{
|
||||
name: 'cost',
|
||||
@ -192,8 +168,7 @@ export const PartSku = {
|
||||
step: 0.01,
|
||||
disabled: (objectData) => !objectData?.overrideCost,
|
||||
value: (objectData) =>
|
||||
objectData?.overrideCost ? objectData?.cost : undefined,
|
||||
columnWidth: 100
|
||||
objectData?.overrideCost ? objectData?.cost : undefined
|
||||
},
|
||||
{
|
||||
name: 'costWithTax',
|
||||
@ -216,8 +191,7 @@ export const PartSku = {
|
||||
return (cost + taxRate?.rate).toFixed(2) || undefined
|
||||
}
|
||||
return cost
|
||||
},
|
||||
columnWidth: 150
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'costTaxRate',
|
||||
@ -228,8 +202,7 @@ export const PartSku = {
|
||||
showHyperlink: true,
|
||||
disabled: (objectData) => !objectData?.overrideCost,
|
||||
value: (objectData) =>
|
||||
objectData?.overrideCost ? objectData?.costTaxRate : undefined,
|
||||
columnWidth: 150
|
||||
objectData?.overrideCost ? objectData?.costTaxRate : undefined
|
||||
},
|
||||
{
|
||||
name: 'price',
|
||||
@ -258,8 +231,7 @@ export const PartSku = {
|
||||
return (cost * (1 + margin / 100)).toFixed(2) || undefined
|
||||
}
|
||||
return objectData?.price
|
||||
},
|
||||
columnWidth: 100
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'priceWithTax',
|
||||
@ -293,8 +265,7 @@ export const PartSku = {
|
||||
return (price + taxRate?.rate).toFixed(2) || undefined
|
||||
}
|
||||
return price
|
||||
},
|
||||
columnWidth: 150
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'margin',
|
||||
@ -308,8 +279,7 @@ export const PartSku = {
|
||||
max: 100,
|
||||
step: 0.01,
|
||||
value: (objectData) =>
|
||||
objectData?.overridePrice ? objectData?.margin : undefined,
|
||||
columnWidth: 85
|
||||
objectData?.overridePrice ? objectData?.margin : undefined
|
||||
},
|
||||
{
|
||||
name: 'priceTaxRate',
|
||||
@ -320,8 +290,7 @@ export const PartSku = {
|
||||
showHyperlink: true,
|
||||
disabled: (objectData) => !objectData?.overridePrice,
|
||||
value: (objectData) =>
|
||||
objectData?.overridePrice ? objectData?.priceTaxRate : undefined,
|
||||
columnWidth: 150
|
||||
objectData?.overridePrice ? objectData?.priceTaxRate : undefined
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -35,23 +35,12 @@ export const PartStock = {
|
||||
type: 'id',
|
||||
objectType: 'partStock',
|
||||
showCopy: true,
|
||||
readOnly: true,
|
||||
columnWidth: 140
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'partStock',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -65,8 +54,7 @@ export const PartStock = {
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'sourceType',
|
||||
@ -83,8 +71,7 @@ export const PartStock = {
|
||||
type: 'object',
|
||||
objectType: 'partSku',
|
||||
required: true,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
@ -130,8 +130,7 @@ export const Payment = {
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
@ -141,31 +140,22 @@ export const Payment = {
|
||||
required: true,
|
||||
objectType: 'payment',
|
||||
showCopy: true,
|
||||
readOnly: true,
|
||||
columnWidth: 140
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: 'state',
|
||||
label: 'State',
|
||||
type: 'state',
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
readOnly: true
|
||||
},
|
||||
{ name: 'state', label: 'State', type: 'state', readOnly: true },
|
||||
{
|
||||
name: 'invoice',
|
||||
label: 'Invoice',
|
||||
type: 'object',
|
||||
objectType: 'invoice',
|
||||
required: true,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'payTo',
|
||||
@ -175,7 +165,6 @@ export const Payment = {
|
||||
showHyperlink: true,
|
||||
required: true,
|
||||
readOnly: true,
|
||||
columnWidth: 200,
|
||||
disabled: (objectData) => {
|
||||
return objectData?.invoice?.orderType == 'purchaseOrder'
|
||||
},
|
||||
@ -187,22 +176,19 @@ export const Payment = {
|
||||
name: 'paymentDate',
|
||||
label: 'Payment Date',
|
||||
type: 'dateTime',
|
||||
required: true,
|
||||
columnWidth: 175
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'postedAt',
|
||||
label: 'Posted At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'cancelledAt',
|
||||
label: 'Cancelled At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'amount',
|
||||
@ -217,15 +203,13 @@ export const Payment = {
|
||||
name: 'paymentMethod',
|
||||
label: 'Payment Method',
|
||||
type: 'string',
|
||||
required: false,
|
||||
columnWidth: 150
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'notes',
|
||||
label: 'Notes',
|
||||
type: 'text',
|
||||
required: false,
|
||||
columnWidth: 200
|
||||
required: false
|
||||
}
|
||||
],
|
||||
stats: [
|
||||
|
||||
@ -213,8 +213,8 @@ export const Printer = {
|
||||
}
|
||||
],
|
||||
columns: [
|
||||
'_reference',
|
||||
'name',
|
||||
'_reference',
|
||||
'state',
|
||||
'host',
|
||||
'tags',
|
||||
@ -230,25 +230,13 @@ export const Printer = {
|
||||
label: 'ID',
|
||||
type: 'id',
|
||||
objectType: 'printer',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'printer',
|
||||
showCopy: true,
|
||||
readOnly: true,
|
||||
columnWidth: 150
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'name',
|
||||
@ -262,8 +250,7 @@ export const Printer = {
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'state',
|
||||
@ -278,22 +265,19 @@ export const Printer = {
|
||||
name: 'connectedAt',
|
||||
label: 'Connected At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'online',
|
||||
label: 'Online',
|
||||
type: 'bool',
|
||||
readOnly: true,
|
||||
columnWidth: 150
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'active',
|
||||
label: 'Active',
|
||||
type: 'bool',
|
||||
required: true,
|
||||
columnWidth: 125
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'vendor',
|
||||
@ -301,8 +285,7 @@ export const Printer = {
|
||||
type: 'object',
|
||||
objectType: 'vendor',
|
||||
required: false,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'host',
|
||||
@ -310,52 +293,45 @@ export const Printer = {
|
||||
type: 'object',
|
||||
objectType: 'host',
|
||||
required: true,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'moonraker.host',
|
||||
label: 'Hostname',
|
||||
type: 'text',
|
||||
required: true,
|
||||
columnWidth: 180
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'moonraker.port',
|
||||
label: 'Port',
|
||||
type: 'number',
|
||||
required: true,
|
||||
columnWidth: 85
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'moonraker.apiKey',
|
||||
label: 'API Key',
|
||||
type: 'secret',
|
||||
reveal: true,
|
||||
required: false,
|
||||
columnWidth: 140
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'moonraker.protocol',
|
||||
label: 'Protocol',
|
||||
type: 'wsprotocol',
|
||||
required: true,
|
||||
columnWidth: 110
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'tags',
|
||||
label: 'Tags',
|
||||
type: 'tags',
|
||||
required: false,
|
||||
columnWidth: 200
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'firmware',
|
||||
label: 'Firmware Version',
|
||||
type: 'text',
|
||||
required: false,
|
||||
readOnly: true,
|
||||
columnWidth: 150
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'currentFilamentStock',
|
||||
@ -363,8 +339,7 @@ export const Printer = {
|
||||
type: 'object',
|
||||
objectType: 'filamentStock',
|
||||
required: false,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'currentJob',
|
||||
@ -372,8 +347,7 @@ export const Printer = {
|
||||
type: 'object',
|
||||
objectType: 'job',
|
||||
required: false,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'currentSubJob',
|
||||
@ -381,15 +355,13 @@ export const Printer = {
|
||||
type: 'object',
|
||||
objectType: 'subJob',
|
||||
required: false,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'alerts',
|
||||
label: 'Alerts',
|
||||
type: 'alerts',
|
||||
required: false,
|
||||
columnWidth: 200
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'queue',
|
||||
@ -397,8 +369,7 @@ export const Printer = {
|
||||
type: 'objectList',
|
||||
objectType: 'subJob',
|
||||
required: false,
|
||||
readOnly: true,
|
||||
columnWidth: 200
|
||||
readOnly: true
|
||||
}
|
||||
],
|
||||
stats: [
|
||||
|
||||
@ -79,14 +79,12 @@ export const Product = {
|
||||
'tags',
|
||||
'vendor',
|
||||
'cost',
|
||||
'costWithTax',
|
||||
'price',
|
||||
'priceWithTax',
|
||||
'createdAt',
|
||||
'updatedAt'
|
||||
],
|
||||
filters: ['_id', 'name', 'type', 'color', 'vendor', 'cost', 'costWithTax', 'price', 'priceWithTax'],
|
||||
sorters: ['name', 'createdAt', 'type', 'vendor', 'cost', 'costWithTax', 'price', 'priceWithTax', 'updatedAt'],
|
||||
filters: ['_id', 'name', 'type', 'color', 'vendor'],
|
||||
sorters: ['name', 'createdAt', 'type', 'vendor', 'updatedAt'],
|
||||
properties: [
|
||||
{
|
||||
name: '_id',
|
||||
@ -94,39 +92,25 @@ export const Product = {
|
||||
type: 'id',
|
||||
objectType: 'product',
|
||||
showCopy: true,
|
||||
readOnly: true,
|
||||
columnWidth: 140
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'product',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'name',
|
||||
label: 'Name',
|
||||
required: true,
|
||||
type: 'text',
|
||||
columnWidth: 200,
|
||||
columnFixed: 'left'
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'vendor',
|
||||
@ -134,22 +118,19 @@ export const Product = {
|
||||
required: true,
|
||||
type: 'object',
|
||||
objectType: 'vendor',
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'version',
|
||||
label: 'Version',
|
||||
required: false,
|
||||
type: 'text',
|
||||
columnWidth: 120
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'tags',
|
||||
label: 'Tags',
|
||||
required: false,
|
||||
type: 'tags',
|
||||
columnWidth: 200
|
||||
type: 'tags'
|
||||
},
|
||||
{
|
||||
name: 'cost',
|
||||
@ -158,8 +139,7 @@ export const Product = {
|
||||
type: 'number',
|
||||
prefix: '£',
|
||||
min: 0,
|
||||
step: 0.01,
|
||||
columnWidth: 100
|
||||
step: 0.01
|
||||
},
|
||||
{
|
||||
name: 'costWithTax',
|
||||
@ -170,7 +150,6 @@ export const Product = {
|
||||
prefix: '£',
|
||||
min: 0,
|
||||
step: 0.01,
|
||||
columnWidth: 150,
|
||||
value: (objectData) => {
|
||||
const cost = objectData?.cost
|
||||
if (!cost) return undefined
|
||||
@ -191,15 +170,13 @@ export const Product = {
|
||||
required: false,
|
||||
type: 'object',
|
||||
objectType: 'taxRate',
|
||||
showHyperlink: true,
|
||||
columnWidth: 150
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'priceMode',
|
||||
label: 'Price Mode',
|
||||
required: false,
|
||||
type: 'priceMode',
|
||||
columnWidth: 150
|
||||
type: 'priceMode'
|
||||
},
|
||||
{
|
||||
name: 'price',
|
||||
@ -209,7 +186,6 @@ export const Product = {
|
||||
prefix: '£',
|
||||
min: 0,
|
||||
step: 0.1,
|
||||
columnWidth: 100,
|
||||
readOnly: (objectData) => objectData?.priceMode == 'margin',
|
||||
value: (objectData) => {
|
||||
if (
|
||||
@ -235,8 +211,7 @@ export const Product = {
|
||||
suffix: '%',
|
||||
min: 0,
|
||||
max: 100,
|
||||
step: 0.01,
|
||||
columnWidth: 85
|
||||
step: 0.01
|
||||
},
|
||||
{
|
||||
name: 'priceWithTax',
|
||||
@ -247,7 +222,6 @@ export const Product = {
|
||||
prefix: '£',
|
||||
min: 0,
|
||||
step: 0.01,
|
||||
columnWidth: 150,
|
||||
value: (objectData) => {
|
||||
let price
|
||||
if (
|
||||
@ -277,8 +251,7 @@ export const Product = {
|
||||
required: false,
|
||||
type: 'object',
|
||||
objectType: 'taxRate',
|
||||
showHyperlink: true,
|
||||
columnWidth: 150
|
||||
showHyperlink: true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -76,10 +76,8 @@ export const ProductSku = {
|
||||
'barcode',
|
||||
'overrideCost',
|
||||
'cost',
|
||||
'costWithTax',
|
||||
'overridePrice',
|
||||
'price',
|
||||
'priceWithTax',
|
||||
'createdAt',
|
||||
'updatedAt'
|
||||
],
|
||||
@ -90,18 +88,14 @@ export const ProductSku = {
|
||||
'product._id',
|
||||
'name',
|
||||
'cost',
|
||||
'costWithTax',
|
||||
'price',
|
||||
'priceWithTax'
|
||||
'price'
|
||||
],
|
||||
sorters: [
|
||||
'barcode',
|
||||
'product',
|
||||
'name',
|
||||
'cost',
|
||||
'costWithTax',
|
||||
'price',
|
||||
'priceWithTax',
|
||||
'createdAt',
|
||||
'updatedAt'
|
||||
],
|
||||
@ -112,23 +106,12 @@ export const ProductSku = {
|
||||
type: 'id',
|
||||
objectType: 'productSku',
|
||||
showCopy: true,
|
||||
readOnly: true,
|
||||
columnWidth: 140
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'productSku',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
|
||||
@ -136,16 +119,13 @@ export const ProductSku = {
|
||||
name: 'name',
|
||||
label: 'Name',
|
||||
required: true,
|
||||
type: 'text',
|
||||
columnWidth: 200,
|
||||
columnFixed: 'left'
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'product',
|
||||
@ -153,45 +133,39 @@ export const ProductSku = {
|
||||
type: 'object',
|
||||
objectType: 'product',
|
||||
required: true,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'barcode',
|
||||
label: 'Barcode',
|
||||
required: false,
|
||||
type: 'text',
|
||||
columnWidth: 150
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'description',
|
||||
label: 'Description',
|
||||
required: false,
|
||||
type: 'text',
|
||||
columnWidth: 200
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'priceMode',
|
||||
label: 'Price Mode',
|
||||
required: false,
|
||||
type: 'priceMode',
|
||||
columnWidth: 150
|
||||
type: 'priceMode'
|
||||
},
|
||||
{
|
||||
name: 'overrideCost',
|
||||
label: 'Override Cost',
|
||||
required: false,
|
||||
type: 'bool',
|
||||
value: (objectData) => objectData?.overrideCost ?? false,
|
||||
columnWidth: 150
|
||||
value: (objectData) => objectData?.overrideCost ?? false
|
||||
},
|
||||
{
|
||||
name: 'overridePrice',
|
||||
label: 'Override Price',
|
||||
required: false,
|
||||
type: 'bool',
|
||||
value: (objectData) => objectData?.overridePrice ?? false,
|
||||
columnWidth: 150
|
||||
value: (objectData) => objectData?.overridePrice ?? false
|
||||
},
|
||||
{
|
||||
name: 'cost',
|
||||
@ -203,8 +177,7 @@ export const ProductSku = {
|
||||
step: 0.01,
|
||||
disabled: (objectData) => !objectData?.overrideCost,
|
||||
value: (objectData) =>
|
||||
objectData?.overrideCost ? objectData?.cost : undefined,
|
||||
columnWidth: 100
|
||||
objectData?.overrideCost ? objectData?.cost : undefined
|
||||
},
|
||||
{
|
||||
name: 'costWithTax',
|
||||
@ -227,8 +200,7 @@ export const ProductSku = {
|
||||
return (cost + taxRate?.rate).toFixed(2) || undefined
|
||||
}
|
||||
return cost
|
||||
},
|
||||
columnWidth: 150
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'costTaxRate',
|
||||
@ -239,8 +211,7 @@ export const ProductSku = {
|
||||
showHyperlink: true,
|
||||
disabled: (objectData) => !objectData?.overrideCost,
|
||||
value: (objectData) =>
|
||||
objectData?.overrideCost ? objectData?.costTaxRate : undefined,
|
||||
columnWidth: 150
|
||||
objectData?.overrideCost ? objectData?.costTaxRate : undefined
|
||||
},
|
||||
{
|
||||
name: 'price',
|
||||
@ -270,8 +241,7 @@ export const ProductSku = {
|
||||
return (cost * (1 + margin / 100)).toFixed(2) || undefined
|
||||
}
|
||||
return objectData?.price
|
||||
},
|
||||
columnWidth: 100
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'priceWithTax',
|
||||
@ -306,8 +276,7 @@ export const ProductSku = {
|
||||
return (price + taxRate?.rate).toFixed(2) || undefined
|
||||
}
|
||||
return price
|
||||
},
|
||||
columnWidth: 150
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'margin',
|
||||
@ -321,8 +290,7 @@ export const ProductSku = {
|
||||
max: 100,
|
||||
step: 0.01,
|
||||
value: (objectData) =>
|
||||
objectData?.overridePrice ? objectData?.margin : undefined,
|
||||
columnWidth: 85
|
||||
objectData?.overridePrice ? objectData?.margin : undefined
|
||||
},
|
||||
{
|
||||
name: 'priceTaxRate',
|
||||
@ -333,8 +301,7 @@ export const ProductSku = {
|
||||
showHyperlink: true,
|
||||
disabled: (objectData) => !objectData?.overridePrice,
|
||||
value: (objectData) =>
|
||||
objectData?.overridePrice ? objectData?.priceTaxRate : undefined,
|
||||
columnWidth: 150
|
||||
objectData?.overridePrice ? objectData?.priceTaxRate : undefined
|
||||
},
|
||||
{
|
||||
name: 'parts',
|
||||
|
||||
@ -102,23 +102,12 @@ export const ProductStock = {
|
||||
type: 'id',
|
||||
objectType: 'productStock',
|
||||
showCopy: true,
|
||||
readOnly: true,
|
||||
columnWidth: 140
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'productStock',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -132,15 +121,13 @@ export const ProductStock = {
|
||||
name: 'postedAt',
|
||||
label: 'Posted At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'productSku',
|
||||
@ -148,8 +135,7 @@ export const ProductStock = {
|
||||
type: 'object',
|
||||
objectType: 'productSku',
|
||||
required: true,
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'currentQuantity',
|
||||
|
||||
@ -202,8 +202,7 @@ export const PurchaseOrder = {
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
@ -213,45 +212,29 @@ export const PurchaseOrder = {
|
||||
required: true,
|
||||
objectType: 'purchaseOrder',
|
||||
showCopy: true,
|
||||
readOnly: true,
|
||||
columnWidth: 140
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: 'state',
|
||||
label: 'State',
|
||||
type: 'state',
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
},
|
||||
{
|
||||
name: 'postedAt',
|
||||
label: 'Posted At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{ name: 'state', label: 'State', type: 'state', readOnly: true },
|
||||
{ name: 'postedAt', label: 'Posted At', type: 'dateTime', readOnly: true },
|
||||
{
|
||||
name: 'vendor',
|
||||
label: 'Vendor',
|
||||
required: true,
|
||||
type: 'object',
|
||||
objectType: 'vendor',
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'acknowledgedAt',
|
||||
label: 'Acknowledged At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'totalTaxAmount',
|
||||
@ -266,8 +249,7 @@ export const PurchaseOrder = {
|
||||
name: 'completedAt',
|
||||
label: 'Completed At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'totalAmountWithTax',
|
||||
|
||||
@ -201,8 +201,7 @@ export const SalesOrder = {
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
@ -212,45 +211,29 @@ export const SalesOrder = {
|
||||
required: true,
|
||||
objectType: 'salesOrder',
|
||||
showCopy: true,
|
||||
readOnly: true,
|
||||
columnWidth: 140
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: 'state',
|
||||
label: 'State',
|
||||
type: 'state',
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
},
|
||||
{
|
||||
name: 'postedAt',
|
||||
label: 'Posted At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{ name: 'state', label: 'State', type: 'state', readOnly: true },
|
||||
{ name: 'postedAt', label: 'Posted At', type: 'dateTime', readOnly: true },
|
||||
{
|
||||
name: 'client',
|
||||
label: 'Client',
|
||||
required: true,
|
||||
type: 'object',
|
||||
objectType: 'client',
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'confirmedAt',
|
||||
label: 'Confirmed At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'totalTaxAmount',
|
||||
@ -265,8 +248,7 @@ export const SalesOrder = {
|
||||
name: 'completedAt',
|
||||
label: 'Completed At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'totalAmountWithTax',
|
||||
|
||||
@ -156,8 +156,7 @@ export const Shipment = {
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
@ -166,31 +165,22 @@ export const Shipment = {
|
||||
columnFixed: 'left',
|
||||
objectType: 'shipment',
|
||||
showCopy: true,
|
||||
readOnly: true,
|
||||
columnWidth: 140
|
||||
readOnly: true
|
||||
},
|
||||
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: 'state',
|
||||
label: 'State',
|
||||
type: 'state',
|
||||
readOnly: true,
|
||||
columnWidth: 250
|
||||
readOnly: true
|
||||
},
|
||||
{ name: 'state', label: 'State', type: 'state', readOnly: true },
|
||||
|
||||
{
|
||||
name: 'shippedAt',
|
||||
label: 'Shipped At',
|
||||
type: 'dateTime',
|
||||
required: false,
|
||||
columnWidth: 175
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'orderType',
|
||||
@ -198,16 +188,14 @@ export const Shipment = {
|
||||
required: true,
|
||||
type: 'objectType',
|
||||
masterFilter: ['purchaseOrder', 'salesOrder'],
|
||||
showHyperlink: true,
|
||||
columnWidth: 150
|
||||
showHyperlink: true
|
||||
},
|
||||
|
||||
{
|
||||
name: 'expectedAt',
|
||||
label: 'Expected At',
|
||||
type: 'dateTime',
|
||||
required: false,
|
||||
columnWidth: 175
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'order',
|
||||
@ -217,47 +205,41 @@ export const Shipment = {
|
||||
showHyperlink: true,
|
||||
objectType: (objectData) => {
|
||||
return objectData?.orderType
|
||||
},
|
||||
columnWidth: 200
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
name: 'deliveredAt',
|
||||
label: 'Delivered At',
|
||||
type: 'dateTime',
|
||||
required: false,
|
||||
columnWidth: 175
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'courierService',
|
||||
label: 'Courier Service',
|
||||
required: true,
|
||||
type: 'object',
|
||||
objectType: 'courierService',
|
||||
columnWidth: 200
|
||||
objectType: 'courierService'
|
||||
},
|
||||
{
|
||||
name: 'trackingNumber',
|
||||
label: 'Tracking Number',
|
||||
type: 'text',
|
||||
required: false,
|
||||
columnWidth: 180
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'taxRate',
|
||||
label: 'Tax Rate',
|
||||
type: 'object',
|
||||
objectType: 'taxRate',
|
||||
showHyperlink: true,
|
||||
columnWidth: 150
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'taxRecord',
|
||||
label: 'Tax Record',
|
||||
type: 'object',
|
||||
objectType: 'taxRecord',
|
||||
showHyperlink: true,
|
||||
columnWidth: 150
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'amount',
|
||||
@ -279,7 +261,6 @@ export const Shipment = {
|
||||
min: 0,
|
||||
step: 0.01,
|
||||
readOnly: true,
|
||||
columnWidth: 125,
|
||||
value: (objectData) => {
|
||||
return (objectData?.amount * objectData?.taxRate?.rate) / 100 || 0
|
||||
}
|
||||
|
||||
@ -28,23 +28,12 @@ export const StockAudit = {
|
||||
type: 'id',
|
||||
objectType: 'stockAudit',
|
||||
showCopy: true,
|
||||
readOnly: true,
|
||||
columnWidth: 140
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'stockAudit',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -58,8 +47,7 @@ export const StockAudit = {
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -17,16 +17,14 @@ export const StockEvent = {
|
||||
objectType: 'stockEvent',
|
||||
columnFixed: 'left',
|
||||
value: null,
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
value: null,
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
@ -36,16 +34,14 @@ export const StockEvent = {
|
||||
objectType: 'stockEvent',
|
||||
value: null,
|
||||
showCopy: true,
|
||||
readOnly: true,
|
||||
columnWidth: 140
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
value: null,
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'owner',
|
||||
|
||||
@ -50,15 +50,6 @@ export const SubJob = {
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'subJob',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'state',
|
||||
label: 'State',
|
||||
@ -89,23 +80,20 @@ export const SubJob = {
|
||||
name: 'startedAt',
|
||||
label: 'Started At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'job',
|
||||
label: 'Job',
|
||||
type: 'object',
|
||||
objectType: 'job',
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'finishedAt',
|
||||
label: 'Finished At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'printer',
|
||||
@ -113,14 +101,12 @@ export const SubJob = {
|
||||
type: 'object',
|
||||
columnFixed: 'left',
|
||||
objectType: 'printer',
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'totalTime',
|
||||
label: 'Total Time',
|
||||
type: 'text',
|
||||
columnWidth: 110,
|
||||
readOnly: true,
|
||||
value: (objectData) => {
|
||||
if (!objectData?.startedAt || !objectData?.finishedAt) {
|
||||
|
||||
@ -69,8 +69,8 @@ export const TaxRate = {
|
||||
}
|
||||
],
|
||||
columns: [
|
||||
'_reference',
|
||||
'name',
|
||||
'_reference',
|
||||
'rate',
|
||||
'rateType',
|
||||
'active',
|
||||
@ -95,23 +95,12 @@ export const TaxRate = {
|
||||
columnFixed: 'left',
|
||||
type: 'id',
|
||||
objectType: 'taxRate',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'taxRate',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -119,31 +108,27 @@ export const TaxRate = {
|
||||
label: 'Name',
|
||||
columnFixed: 'left',
|
||||
required: true,
|
||||
type: 'text',
|
||||
columnWidth: 200
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'active',
|
||||
label: 'Active',
|
||||
required: true,
|
||||
type: 'bool',
|
||||
default: true,
|
||||
columnWidth: 125
|
||||
default: true
|
||||
},
|
||||
{
|
||||
name: 'effectiveFrom',
|
||||
label: 'Effective From',
|
||||
type: 'date',
|
||||
readOnly: false,
|
||||
required: false,
|
||||
columnWidth: 150
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'rate',
|
||||
@ -157,8 +142,7 @@ export const TaxRate = {
|
||||
},
|
||||
suffix: (objectData) => {
|
||||
return objectData?.rateType == 'percentage' ? '%' : undefined
|
||||
},
|
||||
columnWidth: 100
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
@ -166,8 +150,7 @@ export const TaxRate = {
|
||||
label: 'Effective To',
|
||||
type: 'date',
|
||||
readOnly: false,
|
||||
required: false,
|
||||
columnWidth: 150
|
||||
required: false
|
||||
},
|
||||
|
||||
{
|
||||
@ -178,24 +161,21 @@ export const TaxRate = {
|
||||
options: [
|
||||
{ label: 'Percentage', value: 'percentage' },
|
||||
{ label: 'Amount', value: 'amount' }
|
||||
],
|
||||
columnWidth: 150
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'country',
|
||||
label: 'Country',
|
||||
type: 'country',
|
||||
readOnly: false,
|
||||
required: false,
|
||||
columnWidth: 150
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'description',
|
||||
label: 'Description',
|
||||
type: 'text',
|
||||
readOnly: false,
|
||||
required: false,
|
||||
columnWidth: 200
|
||||
required: false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -88,23 +88,12 @@ export const TaxRecord = {
|
||||
columnFixed: 'left',
|
||||
type: 'id',
|
||||
objectType: 'taxRecord',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'taxRecord',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -113,15 +102,13 @@ export const TaxRecord = {
|
||||
required: true,
|
||||
type: 'object',
|
||||
objectType: 'taxRate',
|
||||
showHyperlink: true,
|
||||
columnWidth: 150
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'transactionType',
|
||||
label: 'Transaction Type',
|
||||
required: true,
|
||||
type: 'select',
|
||||
columnWidth: 175,
|
||||
options: [
|
||||
{ label: 'Purchase Order', value: 'purchaseOrder' },
|
||||
{ label: 'Sales Order', value: 'salesOrder' },
|
||||
@ -136,8 +123,7 @@ export const TaxRecord = {
|
||||
objectType: (objectData) => {
|
||||
return objectData?.transactionType || 'purchaseOrder'
|
||||
},
|
||||
showHyperlink: true,
|
||||
columnWidth: 200
|
||||
showHyperlink: true
|
||||
},
|
||||
{
|
||||
name: 'amount',
|
||||
@ -145,8 +131,7 @@ export const TaxRecord = {
|
||||
required: true,
|
||||
type: 'currency',
|
||||
min: 0,
|
||||
step: 0.01,
|
||||
columnWidth: 125
|
||||
step: 0.01
|
||||
},
|
||||
{
|
||||
name: 'taxAmount',
|
||||
@ -154,15 +139,13 @@ export const TaxRecord = {
|
||||
required: true,
|
||||
type: 'currency',
|
||||
min: 0,
|
||||
step: 0.01,
|
||||
columnWidth: 125
|
||||
step: 0.01
|
||||
},
|
||||
{
|
||||
name: 'transactionDate',
|
||||
label: 'Transaction Date',
|
||||
required: true,
|
||||
type: 'date',
|
||||
columnWidth: 175,
|
||||
default: () => new Date()
|
||||
},
|
||||
{
|
||||
|
||||
@ -36,7 +36,7 @@ export const User = {
|
||||
}
|
||||
}
|
||||
],
|
||||
columns: ['_reference', 'name', 'username', 'email', 'role', 'createdAt'],
|
||||
columns: ['name', '_reference', 'username', 'email', 'role', 'createdAt'],
|
||||
filters: ['name', '_id', 'email', 'role'],
|
||||
sorters: ['name', 'email', 'role', 'createdAt', '_id'],
|
||||
properties: [
|
||||
@ -46,23 +46,12 @@ export const User = {
|
||||
columnFixed: 'left',
|
||||
type: 'id',
|
||||
objectType: 'user',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'user',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -70,35 +59,30 @@ export const User = {
|
||||
label: 'Name',
|
||||
columnFixed: 'left',
|
||||
required: true,
|
||||
type: 'text',
|
||||
columnWidth: 200
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
|
||||
{
|
||||
name: 'firstName',
|
||||
label: 'First Name',
|
||||
type: 'text',
|
||||
columnWidth: 130
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'username',
|
||||
label: 'Username',
|
||||
required: true,
|
||||
type: 'text',
|
||||
columnWidth: 150
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'lastName',
|
||||
label: 'Last Name',
|
||||
type: 'text',
|
||||
columnWidth: 130
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'email',
|
||||
@ -112,8 +96,7 @@ export const User = {
|
||||
type: 'file',
|
||||
fileType: 'image',
|
||||
previewOpen: true,
|
||||
showPreview: false,
|
||||
columnWidth: 150
|
||||
showPreview: false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -69,8 +69,8 @@ export const Vendor = {
|
||||
}
|
||||
],
|
||||
columns: [
|
||||
'_reference',
|
||||
'name',
|
||||
'_reference',
|
||||
'country',
|
||||
'email',
|
||||
'website',
|
||||
@ -104,23 +104,12 @@ export const Vendor = {
|
||||
columnFixed: 'left',
|
||||
type: 'id',
|
||||
objectType: 'vendor',
|
||||
showCopy: true,
|
||||
columnWidth: 140
|
||||
showCopy: true
|
||||
},
|
||||
{
|
||||
name: 'createdAt',
|
||||
label: 'Created At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
},
|
||||
{
|
||||
name: '_reference',
|
||||
label: 'Reference',
|
||||
type: 'reference',
|
||||
columnFixed: 'left',
|
||||
objectType: 'vendor',
|
||||
showCopy: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
@ -128,39 +117,34 @@ export const Vendor = {
|
||||
label: 'Name',
|
||||
columnFixed: 'left',
|
||||
required: true,
|
||||
type: 'text',
|
||||
columnWidth: 200
|
||||
type: 'text'
|
||||
},
|
||||
{
|
||||
name: 'updatedAt',
|
||||
label: 'Updated At',
|
||||
type: 'dateTime',
|
||||
readOnly: true,
|
||||
columnWidth: 175
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'contact',
|
||||
label: 'Contact',
|
||||
type: 'text',
|
||||
readOnly: false,
|
||||
required: false,
|
||||
columnWidth: 150
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'active',
|
||||
label: 'Active',
|
||||
type: 'bool',
|
||||
readOnly: false,
|
||||
required: true,
|
||||
columnWidth: 125
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'country',
|
||||
label: 'Country',
|
||||
type: 'country',
|
||||
readOnly: false,
|
||||
required: true,
|
||||
columnWidth: 150
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'email',
|
||||
@ -175,8 +159,7 @@ export const Vendor = {
|
||||
label: 'Phone',
|
||||
type: 'phone',
|
||||
readOnly: false,
|
||||
required: false,
|
||||
columnWidth: 140
|
||||
required: false
|
||||
},
|
||||
{
|
||||
name: 'website',
|
||||
@ -191,8 +174,7 @@ export const Vendor = {
|
||||
label: 'Address',
|
||||
type: 'address',
|
||||
readOnly: false,
|
||||
required: false,
|
||||
columnWidth: 250
|
||||
required: false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user