2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 09:24:04 +00:00
books/models/inventory/SerialNumber.ts

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

24 lines
542 B
TypeScript
Raw Normal View History

2023-05-04 10:45:12 +00:00
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',
],
};
}
}