From f883e18ad429163aa9864d261204f161ab07838b Mon Sep 17 00:00:00 2001 From: Suyash More Date: Thu, 28 Nov 2024 18:32:01 +0530 Subject: [PATCH] Removed the hard-coded label to allow for translations of the 'First installment paid' checkbox --- force-app/main/default/classes/GiftBatch.cls | 2 +- force-app/main/default/lwc/geBatchWizard/geBatchWizard.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/force-app/main/default/classes/GiftBatch.cls b/force-app/main/default/classes/GiftBatch.cls index 6bebe41045..5ea7e71840 100644 --- a/force-app/main/default/classes/GiftBatch.cls +++ b/force-app/main/default/classes/GiftBatch.cls @@ -47,7 +47,7 @@ public inherited sharing class GiftBatch implements IGiftBatch { private GiftTemplate giftTemplate; private Boolean shouldPayFirstInstallment = false; - private static final String AllowFirstInstallmentPaid = 'First installment paid'; + private static final String AllowFirstInstallmentPaid = Label.get('', 'geRD2FirstInstallmentPaid', UserInfo.getLanguage()); @TestVisible private GiftBatchSelector giftBatchSelector { diff --git a/force-app/main/default/lwc/geBatchWizard/geBatchWizard.js b/force-app/main/default/lwc/geBatchWizard/geBatchWizard.js index 3aa4bc15fc..00b3c6c86f 100755 --- a/force-app/main/default/lwc/geBatchWizard/geBatchWizard.js +++ b/force-app/main/default/lwc/geBatchWizard/geBatchWizard.js @@ -26,6 +26,7 @@ import { } from 'c/utilCommon'; import GeLabelService from 'c/geLabelService'; import psPaymentGateway from '@salesforce/label/c.psPaymentGateway'; +import geRD2FirstInstallmentPaid from '@salesforce/label/c.geRD2FirstInstallmentPaid'; import getAllFormTemplates from '@salesforce/apex/GE_GiftEntryController.getAllFormTemplates'; import getDonationMatchingValues from '@salesforce/apex/GE_GiftEntryController.getDonationMatchingValues'; @@ -131,8 +132,8 @@ export default class geBatchWizard extends NavigationMixin(LightningElement) { if (this.isEditMode && this._allowRecurringDonations) { let batchLevelDefaults = JSON.parse(this.dataImportBatchRecord.fields[DATA_IMPORT_BATCH_DEFAULTS_INFO.fieldApiName].value); - return batchLevelDefaults['First installment paid'] ? - batchLevelDefaults['First installment paid'].value : + return batchLevelDefaults[geRD2FirstInstallmentPaid] ? + batchLevelDefaults[geRD2FirstInstallmentPaid].value : false; }