2023-09-05 12:03:42 +00:00
|
|
|
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;
|
2024-10-24 10:09:50 +00:00
|
|
|
posUI?: 'Classic' | 'Modern';
|
2023-09-05 12:03:42 +00:00
|
|
|
|
|
|
|
static filters: FiltersMap = {
|
|
|
|
cashAccount: () => ({
|
|
|
|
rootType: AccountRootTypeEnum.Asset,
|
|
|
|
accountType: AccountTypeEnum.Cash,
|
2024-08-14 05:31:52 +00:00
|
|
|
isGroup: false,
|
2023-09-05 12:03:42 +00:00
|
|
|
}),
|
|
|
|
};
|
|
|
|
}
|