diff --git a/src/components/PaymentPlanHeadPanel.js b/src/components/PaymentPlanHeadPanel.js index 8f1a13a..06d1c1c 100644 --- a/src/components/PaymentPlanHeadPanel.js +++ b/src/components/PaymentPlanHeadPanel.js @@ -138,6 +138,8 @@ class PaymentPlanHeadPanel extends FormPanel { const paymentPlanType = paymentPlan?.benefitPlanTypeName; const { appliedCustomFilters, appliedFiltersRowStructure } = this.state; + const isBenefitPlanType = () => paymentPlanType.replace(/\s+/g, '') === PAYMENT_PLAN_TYPE.BENEFIT_PLAN; + if (paymentPlanType) { // probably could get rid of that if we use double JSON.parse in reducer const objectBenefitPlan = typeof paymentPlan.productOrBenefitPlan === 'object' ? @@ -300,43 +302,13 @@ class PaymentPlanHeadPanel extends FormPanel { /> - {paymentPlanType.replace(/\s+/g, '') === PAYMENT_PLAN_TYPE.BENEFIT_PLAN && ( - <> - - - -
- -
-
-
- -
- - - - - - -
- - - )}
- + {isBenefitPlanType() ? + : + + }
@@ -357,6 +329,39 @@ class PaymentPlanHeadPanel extends FormPanel { />
+ {isBenefitPlanType() && ( + <> + + + +
+ +
+
+
+ +
+ + + + + + +
+ + + )} ); } diff --git a/src/translations/en.json b/src/translations/en.json index dc25b65..2377064 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -8,6 +8,7 @@ "contributionPlan.bundleCodeTaken": "Contribution plan bundle code already exists", "contributionPlan.name": "Name", "contributionPlan.calculationParams": "Additional parameters", + "contributionPlan.calculationParamsBFType": "Parameters", "contributionPlan.calculation": "Calculation Rule", "contributionPlan.benefitPlan": "Insurance Product", "contributionPlan.periodicity": "Periodicity (no of months)", @@ -87,16 +88,16 @@ "paymentPlan.type.product": "Product", "paymentPlan.type.benefitplan": "Benefit Plan", "paymentPlan.advancedCriteria": "Advanced Criteria", - "paymentPlan.advancedCriteria.tip": "Please click the 'Confirm Filters' button to apply your chosen criteria.", + "paymentPlan.advancedCriteria.tip": "Please click the 'Confirm Criteria' button to apply your chosen criteria.", "paymentPlan.advancedCriteria.field": "Field", "paymentPlan.advancedCriteria.filter": "Confirm Filters", "paymentPlan.advancedCriteria.value": "Value", "paymentPlan.advancedCriteria.amount": "Amount", "paymentPlan.advancedCriteria.button.AdvancedCriteria": "Advanced Criteria", - "paymentPlan.advancedCriteria.button.addFilters": "Add filter", + "paymentPlan.advancedCriteria.button.addFilters": "Add criterion", "paymentPlan.advancedCriteria.button.clearAllFilters": "Clear All Criteria", "paymentPlan.advancedCriteria.button.cancel": "Cancel", - "paymentPlan.advancedCriteria.button.filter": "Confirm Filters", + "paymentPlan.advancedCriteria.button.filter": "Confirm Criteria", "paymentPlanPicker.label": "Payment Plan Picker", "paymentPlan.deactivatePaymentPlan": "Deactivate Payment Plan" }