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:
parent
79b36c6ca7
commit
d304e9cd38
@ -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'],
|
||||
};
|
||||
}
|
||||
}
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user