2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 11:29:03 +00:00
books/models/baseModels/PriceList/PriceList.ts

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 08:59:08 +00:00
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 08:59:08 +00:00
export class PriceList extends Doc {
isEnabled?: boolean;
isSales?: boolean;
isPurchase?: boolean;
priceListItem?: PriceListItem[];
2023-06-06 08:59:08 +00:00
static getListViewSettings(): ListViewSettings {
return {
columns: [
'name',
getPriceListEnabledColumn(),
getPriceListStatusColumn(),
],
2023-06-06 08:59:08 +00:00
};
}
}