2
0
mirror of https://github.com/frappe/books.git synced 2025-01-09 17:53:56 +00:00
books/models/baseModels/PriceList/PriceList.ts

25 lines
563 B
TypeScript
Raw Permalink 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
};
}
}