2
0
mirror of https://github.com/frappe/books.git synced 2025-01-24 23:58:27 +00:00

19 lines
490 B
TypeScript
Raw Normal View History

2023-06-06 14:29:08 +05:30
import { Doc } from 'fyo/model/doc';
import { ListViewSettings } from 'fyo/model/types';
import { ItemPrice } from '../ItemPrice/ItemPrice';
import { getPriceListStatusColumn } from 'models/helpers';
export class PriceList extends Doc {
enabled?: boolean;
buying?: boolean;
selling?: boolean;
isUomDependent?: boolean;
priceListItem?: ItemPrice[];
static getListViewSettings(): ListViewSettings {
return {
columns: ['name', getPriceListStatusColumn()],
};
}
}