mirror of
https://github.com/frappe/books.git
synced 2026-08-24 10:04:45 -05:00
feat: syncQueue model
This commit is contained in:
@@ -17,6 +17,7 @@ export const sqliteTypeMap: Record<string, KnexColumnType> = {
|
||||
Time: 'time',
|
||||
Text: 'text',
|
||||
Data: 'text',
|
||||
Secret: 'text',
|
||||
Link: 'text',
|
||||
DynamicLink: 'text',
|
||||
Password: 'text',
|
||||
|
||||
@@ -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'],
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -52,6 +52,7 @@ import { POSSettings } from './inventory/Point of Sale/POSSettings';
|
||||
import { POSOpeningShift } from './inventory/Point of Sale/POSOpeningShift';
|
||||
import { POSClosingShift } from './inventory/Point of Sale/POSClosingShift';
|
||||
import { ERPNextSyncSettings } from './baseModels/ERPNextSyncSettings/ERPNextSyncSettings';
|
||||
import { ERPNextSyncQueue } from './baseModels/ERPNextSyncQueue/ERPNextSyncQueue';
|
||||
|
||||
export const models = {
|
||||
Account,
|
||||
@@ -110,6 +111,7 @@ export const models = {
|
||||
POSClosingShift,
|
||||
// ERPNext Sync
|
||||
ERPNextSyncSettings,
|
||||
ERPNextSyncQueue,
|
||||
} as ModelMap;
|
||||
|
||||
export async function getRegionalModels(
|
||||
|
||||
Reference in New Issue
Block a user