2
0
mirror of https://github.com/frappe/books.git synced 2025-01-26 08:38:27 +00:00
2024-12-24 22:17:40 +05:30

23 lines
528 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 {
isShiftOpen?: boolean;
inventory?: string;
cashAccount?: string;
writeOffAccount?: string;
posUI?: 'Classic' | 'Modern';
static filters: FiltersMap = {
cashAccount: () => ({
rootType: AccountRootTypeEnum.Asset,
accountType: AccountTypeEnum.Cash,
isGroup: false,
}),
};
}