2023-06-05 06:09:06 +00:00
|
|
|
import { Action, ListViewSettings } from 'fyo/model/types';
|
|
|
|
import {
|
|
|
|
getStockTransferActions,
|
|
|
|
getTransactionStatusColumn,
|
|
|
|
} from 'models/helpers';
|
2022-11-14 08:30:11 +00:00
|
|
|
import { PurchaseReceiptItem } from './PurchaseReceiptItem';
|
|
|
|
import { StockTransfer } from './StockTransfer';
|
2023-06-05 06:09:06 +00:00
|
|
|
import { Fyo } from 'fyo';
|
|
|
|
import { ModelNameEnum } from 'models/types';
|
2022-11-14 08:30:11 +00:00
|
|
|
|
|
|
|
export class PurchaseReceipt extends StockTransfer {
|
|
|
|
items?: PurchaseReceiptItem[];
|
|
|
|
|
|
|
|
static getListViewSettings(): ListViewSettings {
|
|
|
|
return {
|
|
|
|
columns: [
|
|
|
|
'name',
|
|
|
|
getTransactionStatusColumn(),
|
|
|
|
'party',
|
|
|
|
'date',
|
|
|
|
'grandTotal',
|
|
|
|
],
|
|
|
|
};
|
|
|
|
}
|
2023-06-05 06:09:06 +00:00
|
|
|
|
|
|
|
static getActions(fyo: Fyo): Action[] {
|
|
|
|
return getStockTransferActions(fyo, ModelNameEnum.Shipment);
|
|
|
|
}
|
2022-11-14 08:30:11 +00:00
|
|
|
}
|