diff --git a/models/baseModels/FetchFromERPNextQueue/FetchFromERPNextQueue.ts b/models/baseModels/FetchFromERPNextQueue/FetchFromERPNextQueue.ts new file mode 100644 index 00000000..283d6afd --- /dev/null +++ b/models/baseModels/FetchFromERPNextQueue/FetchFromERPNextQueue.ts @@ -0,0 +1,17 @@ +import { Doc } from 'fyo/model/doc'; +import { HiddenMap, ListViewSettings } from 'fyo/model/types'; + +export class FetchFromERPNextQueue extends Doc { + referenceType?: string; + documentName?: string; + + hidden: HiddenMap = { + name: () => true, + }; + + static getListViewSettings(): ListViewSettings { + return { + columns: ['referenceType', 'documentName'], + }; + } +} diff --git a/models/index.ts b/models/index.ts index adeef1e8..260e2209 100644 --- a/models/index.ts +++ b/models/index.ts @@ -51,6 +51,7 @@ import { POSSettings } from './inventory/Point of Sale/POSSettings'; import { POSShift } from './inventory/Point of Sale/POSShift'; import { ERPNextSyncSettings } from './baseModels/ERPNextSyncSettings/ERPNextSyncSettings'; import { ERPNextSyncQueue } from './baseModels/ERPNextSyncQueue/ERPNextSyncQueue'; +import { FetchFromERPNextQueue } from './baseModels/FetchFromERPNextQueue/FetchFromERPNextQueue'; export const models = { Account, @@ -108,6 +109,7 @@ export const models = { // ERPNext Sync ERPNextSyncSettings, ERPNextSyncQueue, + FetchFromERPNextQueue, } as ModelMap; export async function getRegionalModels(