mirror of
https://github.com/frappe/books.git
synced 2024-12-22 19:09:01 +00:00
30 lines
753 B
TypeScript
30 lines
753 B
TypeScript
import { Action, ListViewSettings } from 'fyo/model/types';
|
|
import {
|
|
getStockTransferActions,
|
|
getTransactionStatusColumn,
|
|
} from 'models/helpers';
|
|
import { PurchaseReceiptItem } from './PurchaseReceiptItem';
|
|
import { StockTransfer } from './StockTransfer';
|
|
import { Fyo } from 'fyo';
|
|
import { ModelNameEnum } from 'models/types';
|
|
|
|
export class PurchaseReceipt extends StockTransfer {
|
|
items?: PurchaseReceiptItem[];
|
|
|
|
static getListViewSettings(): ListViewSettings {
|
|
return {
|
|
columns: [
|
|
'name',
|
|
getTransactionStatusColumn(),
|
|
'party',
|
|
'date',
|
|
'grandTotal',
|
|
],
|
|
};
|
|
}
|
|
|
|
static getActions(fyo: Fyo): Action[] {
|
|
return getStockTransferActions(fyo, ModelNameEnum.PurchaseReceipt);
|
|
}
|
|
}
|