2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/models/baseModels/AccountingSettings/AccountingSettings.ts
18alantom de7e5ba807 refactor: rename 'frappe' to 'fyo' outside src
- cause now most of it is different from what it was
2022-05-23 16:18:22 +05:30

21 lines
492 B
TypeScript

import Doc from 'fyo/model/doc';
import { FiltersMap, ListsMap } from 'fyo/model/types';
import countryInfo from '../../../fixtures/countryInfo.json';
export class AccountingSettings extends Doc {
static filters: FiltersMap = {
writeOffAccount: () => ({
isGroup: false,
rootType: 'Expense',
}),
roundOffAccount: () => ({
isGroup: false,
rootType: 'Expense',
}),
};
static lists: ListsMap = {
country: () => Object.keys(countryInfo),
};
}