2022-11-14 08:30:11 +00:00
|
|
|
import { ListViewSettings } from 'fyo/model/types';
|
|
|
|
import { getTransactionStatusColumn } from 'models/helpers';
|
|
|
|
import { PurchaseReceiptItem } from './PurchaseReceiptItem';
|
|
|
|
import { StockTransfer } from './StockTransfer';
|
|
|
|
|
|
|
|
export class PurchaseReceipt extends StockTransfer {
|
|
|
|
items?: PurchaseReceiptItem[];
|
|
|
|
|
|
|
|
static getListViewSettings(): ListViewSettings {
|
|
|
|
return {
|
2023-03-03 12:20:16 +00:00
|
|
|
formRoute: (name) => `/edit/PurchaseReceipt/${name}`,
|
2022-11-14 08:30:11 +00:00
|
|
|
columns: [
|
|
|
|
'name',
|
|
|
|
getTransactionStatusColumn(),
|
|
|
|
'party',
|
|
|
|
'date',
|
|
|
|
'grandTotal',
|
|
|
|
],
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|