mirror of
https://github.com/frappe/books.git
synced 2024-11-14 17:34:04 +00:00
21 lines
522 B
TypeScript
21 lines
522 B
TypeScript
import { Doc } from 'fyo/model/doc';
|
|
import { ListViewSettings } from 'fyo/model/types';
|
|
import { PriceListItem } from './PriceListItem';
|
|
import {
|
|
getIsDocEnabledColumn,
|
|
getPriceListStatusColumn,
|
|
} from 'models/helpers';
|
|
|
|
export class PriceList extends Doc {
|
|
isEnabled?: boolean;
|
|
isSales?: boolean;
|
|
isPurchase?: boolean;
|
|
priceListItem?: PriceListItem[];
|
|
|
|
static getListViewSettings(): ListViewSettings {
|
|
return {
|
|
columns: ['name', getIsDocEnabledColumn(), getPriceListStatusColumn()],
|
|
};
|
|
}
|
|
}
|