From 3ef1bffae4abc26e7215a8a4c9ad0980cd713188 Mon Sep 17 00:00:00 2001 From: sniedzielski Date: Fri, 9 Aug 2024 14:19:19 +0200 Subject: [PATCH] CM-992: removed redundant data in report --- package.json | 4 +++- src/components/PayrollPrintTemplate.js | 4 ---- src/components/payroll/BenefitConsumptionSearcherModal.js | 1 + 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c3ac08c..c668984 100644 --- a/package.json +++ b/package.json @@ -43,5 +43,7 @@ "files": [ "dist" ], - "dependencies": {} + "dependencies": { + "react-to-print": "^2.15.1" + } } diff --git a/src/components/PayrollPrintTemplate.js b/src/components/PayrollPrintTemplate.js index dab0179..1355f27 100644 --- a/src/components/PayrollPrintTemplate.js +++ b/src/components/PayrollPrintTemplate.js @@ -123,10 +123,6 @@ const PayrollPrintTemplate = forwardRef(({ benefitConsumptions }, ref) => {
{formatMessage('payroll.benefitConsumption.status')}
{benefitConsumption.status}
-
-
{formatMessage('payroll.benefitConsumption.payedOnTime')}
-
{benefitConsumption.payedOnTime ? 'Yes' : 'No'}
-
{formatMessage('payroll.benefitConsumption.paymentDate')}
diff --git a/src/components/payroll/BenefitConsumptionSearcherModal.js b/src/components/payroll/BenefitConsumptionSearcherModal.js index 31a4db5..623a9f2 100644 --- a/src/components/payroll/BenefitConsumptionSearcherModal.js +++ b/src/components/payroll/BenefitConsumptionSearcherModal.js @@ -1,3 +1,4 @@ +/* eslint-disable max-len */ /* eslint-disable no-param-reassign */ import React, { useState, useRef } from 'react'; import { useReactToPrint } from 'react-to-print';