mirror of
https://github.com/frappe/books.git
synced 2024-11-10 15:50:56 +00:00
539157d122
- getCreateRoute -> getFormRoute - update formRoute listconfig
22 lines
583 B
TypeScript
22 lines
583 B
TypeScript
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 {
|
|
formRoute: (name) => `/edit/PurchaseReceipt/${name}`,
|
|
columns: [
|
|
'name',
|
|
getTransactionStatusColumn(),
|
|
'party',
|
|
'date',
|
|
'grandTotal',
|
|
],
|
|
};
|
|
}
|
|
}
|