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.

25 lines
563 B
TypeScript
Raw 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';
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 {
columns: [
'name',
getPriceListEnabledColumn(),
getPriceListStatusColumn(),
],
2023-06-06 14:29:08 +05:30
};
}
}