mirror of
https://github.com/frappe/books.git
synced 2024-11-08 14:50:56 +00:00
20 lines
449 B
TypeScript
20 lines
449 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;
|
|
|
|
static filters: FiltersMap = {
|
|
cashAccount: () => ({
|
|
rootType: AccountRootTypeEnum.Asset,
|
|
accountType: AccountTypeEnum.Cash,
|
|
}),
|
|
};
|
|
}
|