BIG-204 payment transactions context menu actions.

This commit is contained in:
elforjani13
2021-12-30 12:28:42 +02:00
parent fa23aa67d3
commit 6b98e1f1c2

View File

@@ -40,15 +40,15 @@ function BillPaymentTransactionTable({
});
// Handles delete bill payment transactions.
const handleDeleteBillPaymentTransactons = ({ bill_id }) => {
openAlert('bill-delete', {
billId: bill_id,
const handleDeleteBillPaymentTransactons = ({ bill_payment_id }) => {
openAlert('payment-made-delete', {
paymentMadeId: bill_payment_id,
});
};
// Handles edit bill payment transactions.
const handleEditBillPaymentTransactions = ({ bill_id }) => {
history.push(`/bills/${bill_id}/edit`);
const handleEditBillPaymentTransactions = ({ bill_payment_id }) => {
history.push(`/payment-mades/${bill_payment_id}/edit`);
closeDrawer('bill-drawer');
};