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