mirror of
https://github.com/frappe/books.git
synced 2025-01-09 17:53:56 +00:00
19 lines
490 B
TypeScript
19 lines
490 B
TypeScript
|
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()],
|
||
|
};
|
||
|
}
|
||
|
}
|