diff --git a/client/src/components/accounting-payments-table/accounting-payments-table.component.jsx b/client/src/components/accounting-payments-table/accounting-payments-table.component.jsx index f738cd0ea..edaa05187 100644 --- a/client/src/components/accounting-payments-table/accounting-payments-table.component.jsx +++ b/client/src/components/accounting-payments-table/accounting-payments-table.component.jsx @@ -85,6 +85,17 @@ export function AccountingPayablesTableComponent({ bodyshop, loading, payments, sortOrder: state.sortedInfo.columnKey === "amount" && state.sortedInfo.order, render: (text, record) => {record.amount} }, + { + title: t("payments.fields.type"), + dataIndex: "type", + key: "type", + sorter: (a, b) => a.type.localeCompare(b.type), + sortOrder: state.sortedInfo.columnKey === "type" && state.sortedInfo.order, + filters: bodyshop.md_payment_types.map((s) => { + return { text: s, value: [s] }; + }), + onFilter: (value, record) => value.includes(record.type) + }, { title: t("payments.fields.memo"), dataIndex: "memo", diff --git a/client/src/graphql/accounting.queries.js b/client/src/graphql/accounting.queries.js index 930df6cf1..88aacedbe 100644 --- a/client/src/graphql/accounting.queries.js +++ b/client/src/graphql/accounting.queries.js @@ -73,6 +73,7 @@ export const QUERY_PAYMENTS_FOR_EXPORT = gql` transactionid paymentnum date + type exportlogs { id successful