2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 11:29:00 +00:00
books/models/baseModels/AccountingSettings/AccountingSettings.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
492 B
TypeScript
Raw Normal View History

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),
};
}