2022-10-05 20:07:17 +05:30
|
|
|
import { Doc } from 'fyo/model/doc';
|
2023-03-02 11:58:08 +05:30
|
|
|
import { ListViewSettings } from 'fyo/model/types';
|
2022-10-28 13:34:08 +05:30
|
|
|
import { Money } from 'pesa';
|
2022-10-05 20:07:17 +05:30
|
|
|
|
2022-10-28 13:34:08 +05:30
|
|
|
export class StockLedgerEntry extends Doc {
|
|
|
|
date?: Date;
|
|
|
|
item?: string;
|
|
|
|
rate?: Money;
|
|
|
|
quantity?: number;
|
|
|
|
location?: string;
|
|
|
|
referenceName?: string;
|
|
|
|
referenceType?: string;
|
2023-02-28 11:31:04 +05:30
|
|
|
batch?: string;
|
2023-05-04 16:15:12 +05:30
|
|
|
serialNumber?: string;
|
2023-03-02 11:58:08 +05:30
|
|
|
|
|
|
|
static override getListViewSettings(): ListViewSettings {
|
|
|
|
return {
|
|
|
|
columns: [
|
|
|
|
'date',
|
|
|
|
'item',
|
|
|
|
'location',
|
|
|
|
'rate',
|
|
|
|
'quantity',
|
|
|
|
'referenceName',
|
|
|
|
],
|
|
|
|
};
|
|
|
|
}
|
2022-10-28 13:34:08 +05:30
|
|
|
}
|