mirror of
https://github.com/frappe/books.git
synced 2024-12-23 19:39:07 +00:00
22 lines
552 B
TypeScript
22 lines
552 B
TypeScript
import { ListViewSettings } from 'fyo/model/types';
|
|
import { getTransactionStatusColumn } from 'models/helpers';
|
|
import { ShipmentItem } from './ShipmentItem';
|
|
import { StockTransfer } from './StockTransfer';
|
|
|
|
export class Shipment extends StockTransfer {
|
|
items?: ShipmentItem[];
|
|
|
|
static getListViewSettings(): ListViewSettings {
|
|
return {
|
|
formRoute: ({ name }) => `/edit/Shipment/${name}`,
|
|
columns: [
|
|
'name',
|
|
getTransactionStatusColumn(),
|
|
'party',
|
|
'date',
|
|
'grandTotal',
|
|
],
|
|
};
|
|
}
|
|
}
|