2
0
mirror of https://github.com/frappe/books.git synced 2024-11-15 01:44:04 +00:00
books/models/baseModels/PriceList/PriceList.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
522 B
TypeScript
Raw Normal View History

2023-06-06 08:59:08 +00:00
import { Doc } from 'fyo/model/doc';
import { ListViewSettings } from 'fyo/model/types';
import { PriceListItem } from './PriceListItem';
import {
2024-01-30 12:55:50 +00:00
getIsDocEnabledColumn,
getPriceListStatusColumn,
} from 'models/helpers';
2023-06-06 08:59:08 +00:00
export class PriceList extends Doc {
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
};
}
}