2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 01:14: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',
],
};
}
}