2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 11:29:03 +00:00
books/models/inventory/SerialNumber.ts
2023-05-04 16:15:12 +05:30

24 lines
542 B
TypeScript

import { Doc } from 'fyo/model/doc';
import { ListViewSettings } from 'fyo/model/types';
import { getSerialNumberStatusColumn } from 'models/helpers';
import { SerialNumberStatus } from './types';
export class SerialNumber extends Doc {
name?: string;
item?: string;
description?: string;
status?: SerialNumberStatus;
static getListViewSettings(): ListViewSettings {
return {
columns: [
'name',
getSerialNumberStatusColumn(),
'item',
'description',
'party',
],
};
}
}