2
0
mirror of https://github.com/frappe/books.git synced 2025-01-05 16:12:21 +00:00
books/models/inventory/Point of Sale/POSSettings.ts
2024-11-14 12:41:59 +05:30

22 lines
503 B
TypeScript

import { Doc } from 'fyo/model/doc';
import { FiltersMap } from 'fyo/model/types';
import {
AccountRootTypeEnum,
AccountTypeEnum,
} from 'models/baseModels/Account/types';
export class POSSettings extends Doc {
inventory?: string;
cashAccount?: string;
writeOffAccount?: string;
posUI?: 'Classic' | 'Modern';
static filters: FiltersMap = {
cashAccount: () => ({
rootType: AccountRootTypeEnum.Asset,
accountType: AccountTypeEnum.Cash,
isGroup: false,
}),
};
}