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 {
|
2024-01-30 12:55:50 +00:00
|
|
|
getIsDocEnabledColumn,
|
2023-06-23 05:10:16 +00:00
|
|
|
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 {
|
2024-01-30 12:55:50 +00:00
|
|
|
columns: ['name', getIsDocEnabledColumn(), getPriceListStatusColumn()],
|
2023-06-06 08:59:08 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|