2
0
mirror of https://github.com/frappe/books.git synced 2025-01-23 15:18:24 +00:00

feat: fetchFromErpnext modal

This commit is contained in:
akshayitzme 2024-11-22 16:05:58 +05:30
parent 79b36c6ca7
commit d304e9cd38
2 changed files with 19 additions and 0 deletions

View File

@ -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'],
};
}
}

View File

@ -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(