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; }