2
0
mirror of https://github.com/frappe/books.git synced 2025-01-24 07:38:25 +00:00

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

18 lines
525 B
TypeScript
Raw Permalink Normal View History

2023-06-06 14:29:08 +05:30
import { Doc } from 'fyo/model/doc';
import { ListViewSettings } from 'fyo/model/types';
import { PriceListItem } from './PriceListItem';
2023-06-07 01:42:38 +03:00
import { getPriceListEnabledColumn, getPriceListStatusColumn } from 'models/helpers';
2023-06-06 14:29:08 +05:30
export class PriceList extends Doc {
isEnabled?: boolean;
isSales?: boolean;
isPurchase?: boolean;
priceListItem?: PriceListItem[];
2023-06-06 14:29:08 +05:30
static getListViewSettings(): ListViewSettings {
return {
2023-06-07 01:42:38 +03:00
columns: ['name', getPriceListEnabledColumn(), getPriceListStatusColumn()],
2023-06-06 14:29:08 +05:30
};
}
}