Refactor Database Models for Improved Readability and Consistency
- Updated lazy loading syntax for component imports across multiple models to enhance code clarity. - Reformatted content return statements in various components for better readability. - Adjusted column widths for date fields from 175 to 200 to improve layout consistency across models. - Ensured consistent formatting and structure in model definitions for better maintainability.
This commit is contained in:
parent
4cae70b5e8
commit
5ad0008122
@ -5,7 +5,8 @@ const AppPasswordInfo = lazy(
|
|||||||
import('../../components/Dashboard/Management/AppPasswords/AppPasswordInfo')
|
import('../../components/Dashboard/Management/AppPasswords/AppPasswordInfo')
|
||||||
)
|
)
|
||||||
const NewAppPassword = lazy(
|
const NewAppPassword = lazy(
|
||||||
() => import('../../components/Dashboard/Management/AppPasswords/NewAppPassword')
|
() =>
|
||||||
|
import('../../components/Dashboard/Management/AppPasswords/NewAppPassword')
|
||||||
)
|
)
|
||||||
const RegenerateAppPasswordSecret = lazy(
|
const RegenerateAppPasswordSecret = lazy(
|
||||||
() =>
|
() =>
|
||||||
@ -36,7 +37,11 @@ export const AppPassword = {
|
|||||||
label: 'New App Password',
|
label: 'New App Password',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewAppPassword, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewAppPassword, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -140,7 +145,7 @@ export const AppPassword = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -166,7 +171,7 @@ export const AppPassword = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'user',
|
name: 'user',
|
||||||
|
|||||||
@ -34,7 +34,11 @@ export const Client = {
|
|||||||
label: 'New Client',
|
label: 'New Client',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewClient, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewClient, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -148,7 +152,7 @@ export const Client = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -173,7 +177,7 @@ export const Client = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'active',
|
name: 'active',
|
||||||
|
|||||||
@ -34,7 +34,11 @@ export const Courier = {
|
|||||||
label: 'New Courier',
|
label: 'New Courier',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewCourier, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewCourier, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -104,7 +108,15 @@ export const Courier = {
|
|||||||
content: () => createElement(CourierInfo)
|
content: () => createElement(CourierInfo)
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
columns: ['_reference', 'name', 'country', 'email', 'website', 'createdAt', 'updatedAt'],
|
columns: [
|
||||||
|
'_reference',
|
||||||
|
'name',
|
||||||
|
'country',
|
||||||
|
'email',
|
||||||
|
'website',
|
||||||
|
'createdAt',
|
||||||
|
'updatedAt'
|
||||||
|
],
|
||||||
filters: [
|
filters: [
|
||||||
'name',
|
'name',
|
||||||
'website',
|
'website',
|
||||||
@ -116,14 +128,7 @@ export const Courier = {
|
|||||||
'updatedAt',
|
'updatedAt',
|
||||||
'_reference'
|
'_reference'
|
||||||
],
|
],
|
||||||
sorters: [
|
sorters: ['name', 'country', 'email', 'createdAt', '_id', 'updatedAt'],
|
||||||
'name',
|
|
||||||
'country',
|
|
||||||
'email',
|
|
||||||
'createdAt',
|
|
||||||
'_id',
|
|
||||||
'updatedAt'
|
|
||||||
],
|
|
||||||
group: ['country'],
|
group: ['country'],
|
||||||
properties: [
|
properties: [
|
||||||
{
|
{
|
||||||
@ -140,7 +145,7 @@ export const Courier = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -175,7 +180,7 @@ export const Courier = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'contact',
|
name: 'contact',
|
||||||
|
|||||||
@ -168,7 +168,7 @@ export const CourierService = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -193,7 +193,7 @@ export const CourierService = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'courier',
|
name: 'courier',
|
||||||
|
|||||||
@ -1,10 +1,12 @@
|
|||||||
import { createElement, lazy } from 'react'
|
import { createElement, lazy } from 'react'
|
||||||
|
|
||||||
const DocumentJobInfo = lazy(
|
const DocumentJobInfo = lazy(
|
||||||
() => import('../../components/Dashboard/Management/DocumentJobs/DocumentJobInfo')
|
() =>
|
||||||
|
import('../../components/Dashboard/Management/DocumentJobs/DocumentJobInfo')
|
||||||
)
|
)
|
||||||
const NewDocumentJob = lazy(
|
const NewDocumentJob = lazy(
|
||||||
() => import('../../components/Dashboard/Management/DocumentJobs/NewDocumentJob')
|
() =>
|
||||||
|
import('../../components/Dashboard/Management/DocumentJobs/NewDocumentJob')
|
||||||
)
|
)
|
||||||
import InfoCircleIcon from '../../components/Icons/InfoCircleIcon'
|
import InfoCircleIcon from '../../components/Icons/InfoCircleIcon'
|
||||||
import PlusIcon from '../../components/Icons/PlusIcon'
|
import PlusIcon from '../../components/Icons/PlusIcon'
|
||||||
@ -31,7 +33,11 @@ export const DocumentJob = {
|
|||||||
label: 'New Document Job',
|
label: 'New Document Job',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewDocumentJob, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewDocumentJob, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -80,7 +86,7 @@ export const DocumentJob = {
|
|||||||
visible: (objectData) => {
|
visible: (objectData) => {
|
||||||
return objectData?._isEditing && objectData?._isEditing == true
|
return objectData?._isEditing && objectData?._isEditing == true
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
pages: [
|
pages: [
|
||||||
{
|
{
|
||||||
@ -88,7 +94,14 @@ export const DocumentJob = {
|
|||||||
content: () => createElement(DocumentJobInfo)
|
content: () => createElement(DocumentJobInfo)
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
columns: ['_reference', 'name', 'quantity', 'state', 'createdAt', 'updatedAt'],
|
columns: [
|
||||||
|
'_reference',
|
||||||
|
'name',
|
||||||
|
'quantity',
|
||||||
|
'state',
|
||||||
|
'createdAt',
|
||||||
|
'updatedAt'
|
||||||
|
],
|
||||||
filters: [
|
filters: [
|
||||||
'name',
|
'name',
|
||||||
'quantity',
|
'quantity',
|
||||||
@ -114,7 +127,7 @@ export const DocumentJob = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -131,7 +144,7 @@ export const DocumentJob = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
@ -214,7 +227,10 @@ export const DocumentJob = {
|
|||||||
step: 1,
|
step: 1,
|
||||||
columnWidth: 125,
|
columnWidth: 125,
|
||||||
value: (objectData) => {
|
value: (objectData) => {
|
||||||
if (objectData?.createdAt == undefined && objectData?.quantity == null) {
|
if (
|
||||||
|
objectData?.createdAt == undefined &&
|
||||||
|
objectData?.quantity == null
|
||||||
|
) {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,12 @@
|
|||||||
import { createElement, lazy } from 'react'
|
import { createElement, lazy } from 'react'
|
||||||
|
|
||||||
const DocumentPrinterInfo = lazy(
|
const DocumentPrinterInfo = lazy(
|
||||||
() => import('../../components/Dashboard/Management/DocumentPrinters/DocumentPrinterInfo')
|
() =>
|
||||||
|
import('../../components/Dashboard/Management/DocumentPrinters/DocumentPrinterInfo')
|
||||||
)
|
)
|
||||||
const NewDocumentPrinter = lazy(
|
const NewDocumentPrinter = lazy(
|
||||||
() => import('../../components/Dashboard/Management/DocumentPrinters/NewDocumentPrinter')
|
() =>
|
||||||
|
import('../../components/Dashboard/Management/DocumentPrinters/NewDocumentPrinter')
|
||||||
)
|
)
|
||||||
import InfoCircleIcon from '../../components/Icons/InfoCircleIcon'
|
import InfoCircleIcon from '../../components/Icons/InfoCircleIcon'
|
||||||
import PlusIcon from '../../components/Icons/PlusIcon'
|
import PlusIcon from '../../components/Icons/PlusIcon'
|
||||||
@ -30,7 +32,11 @@ export const DocumentPrinter = {
|
|||||||
label: 'New Document Printer',
|
label: 'New Document Printer',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewDocumentPrinter, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewDocumentPrinter, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -79,7 +85,7 @@ export const DocumentPrinter = {
|
|||||||
visible: (objectData) => {
|
visible: (objectData) => {
|
||||||
return objectData?._isEditing && objectData?._isEditing == true
|
return objectData?._isEditing && objectData?._isEditing == true
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
pages: [
|
pages: [
|
||||||
{
|
{
|
||||||
@ -131,7 +137,7 @@ export const DocumentPrinter = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -148,7 +154,7 @@ export const DocumentPrinter = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -147,7 +147,7 @@ export const DocumentSize = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -164,7 +164,7 @@ export const DocumentSize = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -153,7 +153,7 @@ export const DocumentTemplate = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -178,7 +178,7 @@ export const DocumentTemplate = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'objectType',
|
name: 'objectType',
|
||||||
|
|||||||
@ -34,7 +34,11 @@ export const Filament = {
|
|||||||
label: 'New Filament',
|
label: 'New Filament',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewFilament, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewFilament, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -171,7 +175,7 @@ export const Filament = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -188,7 +192,7 @@ export const Filament = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -5,7 +5,8 @@ const FilamentProfileInfo = lazy(
|
|||||||
import('../../components/Dashboard/Production/FilamentProfiles/FilamentProfileInfo')
|
import('../../components/Dashboard/Production/FilamentProfiles/FilamentProfileInfo')
|
||||||
)
|
)
|
||||||
const NewFilamentProfile = lazy(
|
const NewFilamentProfile = lazy(
|
||||||
() => import('../../components/Dashboard/Production/FilamentProfiles/NewFilamentProfile')
|
() =>
|
||||||
|
import('../../components/Dashboard/Production/FilamentProfiles/NewFilamentProfile')
|
||||||
)
|
)
|
||||||
const DeleteObject = lazy(
|
const DeleteObject = lazy(
|
||||||
() => import('../../components/Dashboard/common/DeleteObject')
|
() => import('../../components/Dashboard/common/DeleteObject')
|
||||||
@ -35,7 +36,11 @@ export const FilamentProfile = {
|
|||||||
label: 'New Filament Profile',
|
label: 'New Filament Profile',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewFilamentProfile, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewFilamentProfile, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -131,7 +136,7 @@ export const FilamentProfile = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -148,7 +153,7 @@ export const FilamentProfile = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -162,7 +162,7 @@ export const FilamentSku = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -187,7 +187,7 @@ export const FilamentSku = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'filament',
|
name: 'filament',
|
||||||
|
|||||||
@ -179,7 +179,7 @@ export const FilamentStock = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -196,7 +196,7 @@ export const FilamentStock = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'state',
|
name: 'state',
|
||||||
|
|||||||
@ -143,7 +143,7 @@ export const File = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -168,7 +168,7 @@ export const File = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'type',
|
name: 'type',
|
||||||
|
|||||||
@ -145,7 +145,7 @@ export const FulfillmentPolicy = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -162,7 +162,7 @@ export const FulfillmentPolicy = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -159,7 +159,7 @@ export const Host = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -176,7 +176,7 @@ export const Host = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -230,7 +230,7 @@ export const Invoice = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -248,7 +248,7 @@ export const Invoice = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'state',
|
name: 'state',
|
||||||
|
|||||||
@ -38,7 +38,11 @@ export const Job = {
|
|||||||
label: 'New Job',
|
label: 'New Job',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewJob, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewJob, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -177,7 +181,7 @@ export const Job = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -194,7 +198,7 @@ export const Job = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'state',
|
name: 'state',
|
||||||
|
|||||||
@ -220,7 +220,7 @@ export const Listing = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -237,7 +237,7 @@ export const Listing = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'title',
|
name: 'title',
|
||||||
|
|||||||
@ -201,7 +201,7 @@ export const ListingVarient = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -218,7 +218,7 @@ export const ListingVarient = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'listing',
|
name: 'listing',
|
||||||
|
|||||||
@ -337,7 +337,7 @@ export const Marketplace = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -354,7 +354,7 @@ export const Marketplace = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -34,7 +34,11 @@ export const Material = {
|
|||||||
label: 'New Material',
|
label: 'New Material',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewMaterial, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewMaterial, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -105,14 +109,7 @@ export const Material = {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
columns: ['_reference', 'name', 'tags', 'createdAt', 'updatedAt'],
|
columns: ['_reference', 'name', 'tags', 'createdAt', 'updatedAt'],
|
||||||
filters: [
|
filters: ['_id', 'name', 'tags', 'createdAt', 'updatedAt', '_reference'],
|
||||||
'_id',
|
|
||||||
'name',
|
|
||||||
'tags',
|
|
||||||
'createdAt',
|
|
||||||
'updatedAt',
|
|
||||||
'_reference'
|
|
||||||
],
|
|
||||||
sorters: ['name', 'createdAt', 'updatedAt', '_id'],
|
sorters: ['name', 'createdAt', 'updatedAt', '_id'],
|
||||||
group: ['tags'],
|
group: ['tags'],
|
||||||
properties: [
|
properties: [
|
||||||
@ -130,7 +127,7 @@ export const Material = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -155,7 +152,7 @@ export const Material = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'tags',
|
name: 'tags',
|
||||||
|
|||||||
@ -30,7 +30,11 @@ export const NoteType = {
|
|||||||
label: 'New Note Type',
|
label: 'New Note Type',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewNoteType, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewNoteType, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -79,7 +83,7 @@ export const NoteType = {
|
|||||||
visible: (objectData) => {
|
visible: (objectData) => {
|
||||||
return objectData?._isEditing && objectData?._isEditing == true
|
return objectData?._isEditing && objectData?._isEditing == true
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
pages: [
|
pages: [
|
||||||
{
|
{
|
||||||
@ -112,7 +116,7 @@ export const NoteType = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -137,7 +141,7 @@ export const NoteType = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'color',
|
name: 'color',
|
||||||
|
|||||||
@ -178,7 +178,7 @@ export const OrderItem = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -195,7 +195,7 @@ export const OrderItem = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -30,7 +30,11 @@ export const Part = {
|
|||||||
label: 'New Part',
|
label: 'New Part',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewPart, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewPart, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -150,7 +154,7 @@ export const Part = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -167,7 +171,7 @@ export const Part = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -167,7 +167,7 @@ export const PartSku = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -184,7 +184,7 @@ export const PartSku = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -181,7 +181,7 @@ export const PartStock = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -198,7 +198,7 @@ export const PartStock = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'state',
|
name: 'state',
|
||||||
|
|||||||
@ -231,7 +231,7 @@ export const Payment = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -249,7 +249,7 @@ export const Payment = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'state',
|
name: 'state',
|
||||||
|
|||||||
@ -130,7 +130,7 @@ export const PaymentPolicy = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -147,7 +147,7 @@ export const PaymentPolicy = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -5,7 +5,8 @@ const PermissionSettingInfo = lazy(
|
|||||||
import('../../components/Dashboard/Management/PermissionSettings/PermissionSettingInfo')
|
import('../../components/Dashboard/Management/PermissionSettings/PermissionSettingInfo')
|
||||||
)
|
)
|
||||||
const NewPermissionSetting = lazy(
|
const NewPermissionSetting = lazy(
|
||||||
() => import('../../components/Dashboard/Management/PermissionSettings/NewPermissionSetting')
|
() =>
|
||||||
|
import('../../components/Dashboard/Management/PermissionSettings/NewPermissionSetting')
|
||||||
)
|
)
|
||||||
const DeleteObject = lazy(
|
const DeleteObject = lazy(
|
||||||
() => import('../../components/Dashboard/common/DeleteObject')
|
() => import('../../components/Dashboard/common/DeleteObject')
|
||||||
@ -36,7 +37,11 @@ export const PermissionSetting = {
|
|||||||
label: 'New Permission Setting',
|
label: 'New Permission Setting',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewPermissionSetting, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewPermissionSetting, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -124,7 +129,7 @@ export const PermissionSetting = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -141,7 +146,7 @@ export const PermissionSetting = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -338,7 +338,7 @@ export const Printer = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -355,7 +355,7 @@ export const Printer = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -1,10 +1,12 @@
|
|||||||
import { createElement, lazy } from 'react'
|
import { createElement, lazy } from 'react'
|
||||||
|
|
||||||
const PrinterProfileInfo = lazy(
|
const PrinterProfileInfo = lazy(
|
||||||
() => import('../../components/Dashboard/Production/PrinterProfiles/PrinterProfileInfo')
|
() =>
|
||||||
|
import('../../components/Dashboard/Production/PrinterProfiles/PrinterProfileInfo')
|
||||||
)
|
)
|
||||||
const NewPrinterProfile = lazy(
|
const NewPrinterProfile = lazy(
|
||||||
() => import('../../components/Dashboard/Production/PrinterProfiles/NewPrinterProfile')
|
() =>
|
||||||
|
import('../../components/Dashboard/Production/PrinterProfiles/NewPrinterProfile')
|
||||||
)
|
)
|
||||||
const DeleteObject = lazy(
|
const DeleteObject = lazy(
|
||||||
() => import('../../components/Dashboard/common/DeleteObject')
|
() => import('../../components/Dashboard/common/DeleteObject')
|
||||||
@ -299,7 +301,11 @@ export const PrinterProfile = {
|
|||||||
label: 'New Printer Profile',
|
label: 'New Printer Profile',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewPrinterProfile, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewPrinterProfile, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -410,7 +416,7 @@ export const PrinterProfile = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -427,7 +433,7 @@ export const PrinterProfile = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -30,7 +30,11 @@ export const Product = {
|
|||||||
label: 'New Product',
|
label: 'New Product',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewProduct, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewProduct, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -155,7 +159,7 @@ export const Product = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -172,7 +176,7 @@ export const Product = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -138,7 +138,7 @@ export const ProductCategory = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -156,7 +156,7 @@ export const ProductCategory = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -169,7 +169,7 @@ export const ProductSku = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -195,7 +195,7 @@ export const ProductSku = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'product',
|
name: 'product',
|
||||||
|
|||||||
@ -187,7 +187,7 @@ export const ProductStock = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -204,7 +204,7 @@ export const ProductStock = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'state',
|
name: 'state',
|
||||||
|
|||||||
@ -296,7 +296,7 @@ export const PurchaseOrder = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -314,7 +314,7 @@ export const PurchaseOrder = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'state',
|
name: 'state',
|
||||||
|
|||||||
@ -154,7 +154,7 @@ export const ReturnPolicy = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -171,7 +171,7 @@ export const ReturnPolicy = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -43,7 +43,11 @@ export const SalesOrder = {
|
|||||||
label: 'New Sales Order',
|
label: 'New Sales Order',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewSalesOrder, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewSalesOrder, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -160,7 +164,10 @@ export const SalesOrder = {
|
|||||||
]
|
]
|
||||||
return !allowedStates.includes(objectData?.state?.type)
|
return !allowedStates.includes(objectData?.state?.type)
|
||||||
},
|
},
|
||||||
objectData: (objectData) => ({ orderType: 'salesOrder', order: objectData })
|
objectData: (objectData) => ({
|
||||||
|
orderType: 'salesOrder',
|
||||||
|
order: objectData
|
||||||
|
})
|
||||||
},
|
},
|
||||||
{ type: 'divider' },
|
{ type: 'divider' },
|
||||||
{
|
{
|
||||||
@ -233,14 +240,7 @@ export const SalesOrder = {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
group: ['client'],
|
group: ['client'],
|
||||||
filters: [
|
filters: ['client', 'state', 'value', 'createdAt', 'updatedAt', '_reference'],
|
||||||
'client',
|
|
||||||
'state',
|
|
||||||
'value',
|
|
||||||
'createdAt',
|
|
||||||
'updatedAt',
|
|
||||||
'_reference'
|
|
||||||
],
|
|
||||||
sorters: ['createdAt', 'state', 'updatedAt'],
|
sorters: ['createdAt', 'state', 'updatedAt'],
|
||||||
columns: [
|
columns: [
|
||||||
'_reference',
|
'_reference',
|
||||||
@ -272,7 +272,7 @@ export const SalesOrder = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -290,7 +290,7 @@ export const SalesOrder = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'state',
|
name: 'state',
|
||||||
|
|||||||
@ -43,7 +43,11 @@ export const Shipment = {
|
|||||||
label: 'New Shipment',
|
label: 'New Shipment',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewShipment, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewShipment, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -225,7 +229,7 @@ export const Shipment = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -243,7 +247,7 @@ export const Shipment = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'state',
|
name: 'state',
|
||||||
|
|||||||
@ -173,7 +173,7 @@ export const StockAudit = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -190,7 +190,7 @@ export const StockAudit = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'state',
|
name: 'state',
|
||||||
|
|||||||
@ -129,7 +129,7 @@ export const StockAuditLevel = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -146,7 +146,7 @@ export const StockAuditLevel = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -1,10 +1,12 @@
|
|||||||
import { createElement, lazy } from 'react'
|
import { createElement, lazy } from 'react'
|
||||||
|
|
||||||
const StockLocationInfo = lazy(
|
const StockLocationInfo = lazy(
|
||||||
() => import('../../components/Dashboard/Inventory/StockLocations/StockLocationInfo')
|
() =>
|
||||||
|
import('../../components/Dashboard/Inventory/StockLocations/StockLocationInfo')
|
||||||
)
|
)
|
||||||
const NewStockLocation = lazy(
|
const NewStockLocation = lazy(
|
||||||
() => import('../../components/Dashboard/Inventory/StockLocations/NewStockLocation')
|
() =>
|
||||||
|
import('../../components/Dashboard/Inventory/StockLocations/NewStockLocation')
|
||||||
)
|
)
|
||||||
import StockLocationIcon from '../../components/Icons/StockLocationIcon'
|
import StockLocationIcon from '../../components/Icons/StockLocationIcon'
|
||||||
import PlusIcon from '../../components/Icons/PlusIcon'
|
import PlusIcon from '../../components/Icons/PlusIcon'
|
||||||
@ -30,7 +32,11 @@ export const StockLocation = {
|
|||||||
label: 'New Stock Location',
|
label: 'New Stock Location',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewStockLocation, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewStockLocation, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -79,7 +85,7 @@ export const StockLocation = {
|
|||||||
visible: (objectData) => {
|
visible: (objectData) => {
|
||||||
return objectData?._isEditing && objectData?._isEditing == true
|
return objectData?._isEditing && objectData?._isEditing == true
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
pages: [
|
pages: [
|
||||||
{
|
{
|
||||||
@ -105,7 +111,7 @@ export const StockLocation = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -122,7 +128,7 @@ export const StockLocation = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -172,7 +172,7 @@ export const StockTransfer = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -189,7 +189,7 @@ export const StockTransfer = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'state',
|
name: 'state',
|
||||||
|
|||||||
@ -97,7 +97,7 @@ export const SubJob = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -114,7 +114,7 @@ export const SubJob = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'state',
|
name: 'state',
|
||||||
|
|||||||
@ -35,7 +35,11 @@ export const TaxRate = {
|
|||||||
label: 'New Tax Rate',
|
label: 'New Tax Rate',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewTaxRate, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewTaxRate, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -154,7 +158,7 @@ export const TaxRate = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -179,7 +183,7 @@ export const TaxRate = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'active',
|
name: 'active',
|
||||||
|
|||||||
@ -34,7 +34,11 @@ export const TaxRecord = {
|
|||||||
label: 'New Tax Record',
|
label: 'New Tax Record',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewTaxRecord, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewTaxRecord, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -148,7 +152,7 @@ export const TaxRecord = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
|
|||||||
@ -121,7 +121,7 @@ export const User = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -138,7 +138,7 @@ export const User = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -35,7 +35,11 @@ export const UserGroup = {
|
|||||||
label: 'New User Group',
|
label: 'New User Group',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewUserGroup, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewUserGroup, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -135,7 +139,7 @@ export const UserGroup = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -152,7 +156,7 @@ export const UserGroup = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
|||||||
@ -34,7 +34,11 @@ export const Vendor = {
|
|||||||
label: 'New Vendor',
|
label: 'New Vendor',
|
||||||
icon: PlusIcon,
|
icon: PlusIcon,
|
||||||
content: (objectData, { onOk } = {}) => {
|
content: (objectData, { onOk } = {}) => {
|
||||||
return createElement(NewVendor, { defaultValues: objectData, onOk, reset: true })
|
return createElement(NewVendor, {
|
||||||
|
defaultValues: objectData,
|
||||||
|
onOk,
|
||||||
|
reset: true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -147,7 +151,7 @@ export const Vendor = {
|
|||||||
label: 'Created At',
|
label: 'Created At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '_reference',
|
name: '_reference',
|
||||||
@ -172,7 +176,7 @@ export const Vendor = {
|
|||||||
label: 'Updated At',
|
label: 'Updated At',
|
||||||
type: 'dateTime',
|
type: 'dateTime',
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 175
|
columnWidth: 200
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'contact',
|
name: 'contact',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user