2023-06-06 08:59:08 +00:00
|
|
|
import { Doc } from 'fyo/model/doc';
|
|
|
|
import { ListViewSettings } from 'fyo/model/types';
|
2023-06-07 04:04:56 +00:00
|
|
|
import { PriceListItem } from './PriceListItem';
|
2023-06-23 05:10:16 +00:00
|
|
|
import {
|
|
|
|
getPriceListEnabledColumn,
|
|
|
|
getPriceListStatusColumn,
|
|
|
|
} from 'models/helpers';
|
2023-06-06 08:59:08 +00:00
|
|
|
|
|
|
|
export class PriceList extends Doc {
|
2023-06-07 04:04:56 +00:00
|
|
|
isEnabled?: boolean;
|
|
|
|
isSales?: boolean;
|
|
|
|
isPurchase?: boolean;
|
|
|
|
priceListItem?: PriceListItem[];
|
2023-06-06 08:59:08 +00:00
|
|
|
|
|
|
|
static getListViewSettings(): ListViewSettings {
|
|
|
|
return {
|
2023-06-23 05:10:16 +00:00
|
|
|
columns: [
|
|
|
|
'name',
|
|
|
|
getPriceListEnabledColumn(),
|
|
|
|
getPriceListStatusColumn(),
|
|
|
|
],
|
2023-06-06 08:59:08 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|