Skip to content

Commit

Permalink
feat: syncQueue model
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayitzme committed Nov 22, 2024
1 parent 1f1b637 commit 751ab8c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const sqliteTypeMap: Record<string, KnexColumnType> = {
Time: 'time',
Text: 'text',
Data: 'text',
Secret: 'text',
Link: 'text',
DynamicLink: 'text',
Password: 'text',
Expand Down
17 changes: 17 additions & 0 deletions models/baseModels/ERPNextSyncQueue/ERPNextSyncQueue.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Doc } from 'fyo/model/doc';
import { HiddenMap, ListViewSettings } from 'fyo/model/types';

export class ERPNextSyncQueue extends Doc {
referenceType?: string;
documentName?: string;

hidden: HiddenMap = {
name: () => true,
};

static getListViewSettings(): ListViewSettings {
return {
columns: ['referenceType', 'documentName'],
};
}
}
2 changes: 2 additions & 0 deletions models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import { OpeningCash } from './inventory/Point of Sale/OpeningCash';
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';

export const models = {
Account,
Expand Down Expand Up @@ -106,6 +107,7 @@ export const models = {
POSShift,
// ERPNext Sync
ERPNextSyncSettings,
ERPNextSyncQueue,
} as ModelMap;

export async function getRegionalModels(
Expand Down

0 comments on commit 751ab8c

Please sign in to comment.