mirror of
https://github.com/frappe/books.git
synced 2024-11-15 09:54:04 +00:00
23 lines
644 B
TypeScript
23 lines
644 B
TypeScript
import { Doc } from 'fyo/model/doc';
|
|
import { FiltersMap, ListViewSettings } from 'fyo/model/types';
|
|
import { CollectionRulesItems } from '../CollectionRulesItems/CollectionRulesItems';
|
|
import { AccountRootTypeEnum } from '../Account/types';
|
|
|
|
export class LoyaltyProgram extends Doc {
|
|
collectionRules?: CollectionRulesItems[];
|
|
expiryDuration?: number;
|
|
|
|
static filters: FiltersMap = {
|
|
expenseAccount: () => ({
|
|
rootType: AccountRootTypeEnum.Liability,
|
|
isGroup: false,
|
|
}),
|
|
};
|
|
|
|
static getListViewSettings(): ListViewSettings {
|
|
return {
|
|
columns: ['name', 'fromDate', 'toDate', 'expiryDuration'],
|
|
};
|
|
}
|
|
}
|