2022-10-05 14:37:17 +00:00
|
|
|
import { Doc } from 'fyo/model/doc';
|
2023-03-02 06:28:08 +00:00
|
|
|
import { ListViewSettings } from 'fyo/model/types';
|
2022-10-28 08:04:08 +00:00
|
|
|
import { Money } from 'pesa';
|
2022-10-05 14:37:17 +00:00
|
|
|
|
2022-10-28 08:04:08 +00:00
|
|
|
export class StockLedgerEntry extends Doc {
|
|
|
|
date?: Date;
|
|
|
|
item?: string;
|
|
|
|
rate?: Money;
|
|
|
|
quantity?: number;
|
|
|
|
location?: string;
|
|
|
|
referenceName?: string;
|
|
|
|
referenceType?: string;
|
2023-02-28 06:01:04 +00:00
|
|
|
batch?: string;
|
2023-05-04 10:45:12 +00:00
|
|
|
serialNumber?: string;
|
2023-03-02 06:28:08 +00:00
|
|
|
|
|
|
|
static override getListViewSettings(): ListViewSettings {
|
|
|
|
return {
|
|
|
|
columns: [
|
|
|
|
'date',
|
|
|
|
'item',
|
|
|
|
'location',
|
|
|
|
'rate',
|
|
|
|
'quantity',
|
|
|
|
'referenceName',
|
|
|
|
],
|
|
|
|
};
|
|
|
|
}
|
2022-10-28 08:04:08 +00:00
|
|
|
}
|