From a03a6344041230528a36195cc19b2722bfedee80 Mon Sep 17 00:00:00 2001 From: Suyash More Date: Tue, 19 Nov 2024 16:15:35 +0530 Subject: [PATCH] Replace fieldname with label for 'First installment paid' checkbox Replaced hard-coded fieldname with label for 'First installment paid' checkbox, since batch-Defaults contains field labels as keys --- force-app/main/default/classes/GiftBatch.cls | 2 +- force-app/main/default/lwc/geBatchWizard/geBatchWizard.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/force-app/main/default/classes/GiftBatch.cls b/force-app/main/default/classes/GiftBatch.cls index 8ba4bd57881..6bebe41045a 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 = 'AllowFirstInstallment__f'; + private static final String AllowFirstInstallmentPaid = 'First installment paid'; @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 3c31935f607..3aa4bc15fcc 100755 --- a/force-app/main/default/lwc/geBatchWizard/geBatchWizard.js +++ b/force-app/main/default/lwc/geBatchWizard/geBatchWizard.js @@ -131,8 +131,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['AllowFirstInstallment__f'] ? - batchLevelDefaults['AllowFirstInstallment__f'].value : + return batchLevelDefaults['First installment paid'] ? + batchLevelDefaults['First installment paid'].value : false; }