mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +00:00
21 lines
498 B
TypeScript
21 lines
498 B
TypeScript
import Doc from 'frappe/model/doc';
|
|
import { FiltersMap, ListsMap } from 'frappe/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),
|
|
};
|
|
}
|