From f6a9b63ca27465bb7780893655dcf09b353fd4da Mon Sep 17 00:00:00 2001 From: Jan Date: Fri, 15 Mar 2024 12:18:33 +0100 Subject: [PATCH] hotfix-payment-cycle --- src/actions.js | 2 +- .../payroll/BenefitConsumptionPayrollFilter.js | 12 ++++++------ .../payroll/BenefitConsumptionPayrollSearcher.js | 12 ++++++------ src/translations/en.json | 4 ++-- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/actions.js b/src/actions.js index 0b82a6c..605effd 100644 --- a/src/actions.js +++ b/src/actions.js @@ -46,7 +46,7 @@ const PAYROLL_BENEFIT_CONSUMPTION_PROJECTION = () => [ 'id', // eslint-disable-next-line max-len 'benefit{id,isDeleted,jsonExt,dateCreated,dateUpdated,dateValidFrom,dateValidTo,id,code,individual {firstName, lastName},benefitAttachment {bill {id, code, terms, datePayed}},receipt,photo,amount,type,status,dateDue}', - 'payroll {id, name, status, paymentCycle {runMonth, runYear}, paymentMethod, benefitPlanNameCode}', + 'payroll {id, name, status, paymentCycle {code, startDate, endDate}, paymentMethod, benefitPlanNameCode}', ]; const BENEFIT_CONSUMPTION_SUMMARY_PROJECTION = () => [ diff --git a/src/components/payroll/BenefitConsumptionPayrollFilter.js b/src/components/payroll/BenefitConsumptionPayrollFilter.js index b1de6f0..6768cb3 100644 --- a/src/components/payroll/BenefitConsumptionPayrollFilter.js +++ b/src/components/payroll/BenefitConsumptionPayrollFilter.js @@ -85,20 +85,20 @@ function BenefitConsumptionPayrollFilter({ filters, onChangeFilters }) { diff --git a/src/components/payroll/BenefitConsumptionPayrollSearcher.js b/src/components/payroll/BenefitConsumptionPayrollSearcher.js index 4684538..2541ddd 100644 --- a/src/components/payroll/BenefitConsumptionPayrollSearcher.js +++ b/src/components/payroll/BenefitConsumptionPayrollSearcher.js @@ -36,8 +36,8 @@ function BenefitConsumptionPayrollSearcher({ const headers = () => [ 'benefitConsumption.payroll.name', 'benefitConsumption.payroll.benefitPlan', - 'benefitConsumption.payroll.runMonth', - 'benefitConsumption.payroll.runYear', + 'benefitConsumption.payroll.startDate', + 'benefitConsumption.payroll.endDate', 'benefitConsumption.status', 'benefitConsumption.code', 'benefitConsumption.receipt', @@ -64,8 +64,8 @@ function BenefitConsumptionPayrollSearcher({ (payrollBenefitConsumption) => payrollBenefitConsumption?.payroll?.name, (payrollBenefitConsumption) => payrollBenefitConsumption?.payroll?.benefitPlanNameCode, // eslint-disable-next-line max-len - (payrollBenefitConsumption) => payrollBenefitConsumption?.payroll?.paymentCycle?.runMonth, - (payrollBenefitConsumption) => payrollBenefitConsumption?.payroll?.paymentCycle?.runYear, + (payrollBenefitConsumption) => payrollBenefitConsumption?.payroll?.paymentCycle?.startDate, + (payrollBenefitConsumption) => payrollBenefitConsumption?.payroll?.paymentCycle?.startDate, (payrollBenefitConsumption) => payrollBenefitConsumption?.benefit?.status, (payrollBenefitConsumption) => payrollBenefitConsumption?.benefit?.code, (payrollBenefitConsumption) => payrollBenefitConsumption?.benefit?.receipt, @@ -85,8 +85,8 @@ function BenefitConsumptionPayrollSearcher({ const sorts = () => [ ['payroll_Name', true], ['payroll_benefitPlanName', false], - ['payroll_PaymentCycle_RunMonth', true], - ['payroll_PaymentCycle_RunYear', true], + ['payroll_PaymentCycle_StartDate', true], + ['payroll_PaymentCycle_EndDate', true], ['benefit_Status', true], ['benefit_Code', true], ['benefit_Receipt', true], diff --git a/src/translations/en.json b/src/translations/en.json index 8508c65..32e93a9 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -57,8 +57,8 @@ "payroll.benefitConsumption.status.CANCELLED": "Cancelled", "payroll.benefitConsumption.status.DELETED": "Deleted", "payroll.benefitConsumption.status.SUSPENDED": "Suspended", - "payroll.benefitConsumption.payroll.runYear": "Accounting Year", - "payroll.benefitConsumption.payroll.runMonth": "Accounting Month", + "payroll.benefitConsumption.payroll.startDate": "Accounting Start Date", + "payroll.benefitConsumption.payroll.endDate": "Accounting End Date", "payroll.benefitConsumption.payroll.name": "Payroll Name", "payroll.benefitConsumption.payroll.benefitPlan": "Benefit Plan", "payroll.benefitConsumption.payroll.benefitPlanName": "Benefit Plan",