mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +00:00
d42d0841aa
- fix prettier issues
25 lines
563 B
TypeScript
25 lines
563 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(),
|
|
],
|
|
};
|
|
}
|
|
}
|