mirror of
https://github.com/frappe/books.git
synced 2024-11-10 15:50:56 +00:00
48e9f1b668
- make address a manually named entry type - make a few more entry types searchable - fix dropdown filter undefined issue - reset settings docs if not saved - fix ux dropdown toggle on click
28 lines
550 B
TypeScript
28 lines
550 B
TypeScript
import { Doc } from 'fyo/model/doc';
|
|
import { ListViewSettings } from 'fyo/model/types';
|
|
import { Money } from 'pesa';
|
|
|
|
export class StockLedgerEntry extends Doc {
|
|
date?: Date;
|
|
item?: string;
|
|
rate?: Money;
|
|
quantity?: number;
|
|
location?: string;
|
|
referenceName?: string;
|
|
referenceType?: string;
|
|
batch?: string;
|
|
|
|
static override getListViewSettings(): ListViewSettings {
|
|
return {
|
|
columns: [
|
|
'date',
|
|
'item',
|
|
'location',
|
|
'rate',
|
|
'quantity',
|
|
'referenceName',
|
|
],
|
|
};
|
|
}
|
|
}
|