mirror of
https://github.com/frappe/books.git
synced 2024-11-08 23:00:56 +00:00
24 lines
542 B
TypeScript
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',
|
||
|
],
|
||
|
};
|
||
|
}
|
||
|
}
|