2
0
mirror of https://github.com/frappe/books.git synced 2025-01-09 01:44:15 +00:00
books/models/baseModels/PriceList/PriceList.ts
18alantom 7d10951316 fix: ItemPrice -> PriceListItem
- update and remove fields
2023-06-06 22:11:54 -07:00

18 lines
525 B
TypeScript

import { Doc } from 'fyo/model/doc';
import { ListViewSettings } from 'fyo/model/types';
import { PriceListItem } from './PriceListItem';
import { getPriceListEnabledColumn, getPriceListStatusColumn } from 'models/helpers';
export class PriceList extends Doc {
isEnabled?: boolean;
isSales?: boolean;
isPurchase?: boolean;
priceListItem?: PriceListItem[];
static getListViewSettings(): ListViewSettings {
return {
columns: ['name', getPriceListEnabledColumn(), getPriceListStatusColumn()],
};
}
}