diff --git a/src/actions.js b/src/actions.js index 3d88225..7d277c0 100644 --- a/src/actions.js +++ b/src/actions.js @@ -290,3 +290,13 @@ export function rejectPayroll(payroll, clientMutationLabel) { clientMutationLabel, ); } + +export function makePaymentForPayroll(payroll, clientMutationLabel) { + const payrollUuids = `ids: ["${payroll?.id}"]`; + return PERFORM_MUTATION( + MUTATION_SERVICE.PAYROLL.MAKE_PAYMENT, + payrollUuids, + ACTION_TYPE.MAKE_PAYMENT_PAYROLL, + clientMutationLabel, + ); +} diff --git a/src/components/payroll/BenefitConsumptionSearcherModal.js b/src/components/payroll/BenefitConsumptionSearcherModal.js index 12885ac..31fbfd6 100644 --- a/src/components/payroll/BenefitConsumptionSearcherModal.js +++ b/src/components/payroll/BenefitConsumptionSearcherModal.js @@ -38,6 +38,7 @@ function BenefitConsumptionSearcherModal({ 'benefitConsumption.dateDue', 'benefitConsumption.payedOnTime', 'benefitConsumption.paymentDate', + 'benefitConsumption.status', '', ]; @@ -68,6 +69,7 @@ function BenefitConsumptionSearcherModal({ ? '' : benefitAttachment?.bill?.datePayed ), + (benefitAttachment) => benefitAttachment?.benefit?.status, (benefitAttachment) => ( + )}