Skip to content

Commit

Permalink
Removed the hard-coded label to allow for translations of the 'First …
Browse files Browse the repository at this point in the history
…installment paid' checkbox
  • Loading branch information
salesforce-suyash-more committed Nov 28, 2024
1 parent a03a634 commit f883e18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion force-app/main/default/classes/GiftBatch.cls
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 3 additions & 2 deletions force-app/main/default/lwc/geBatchWizard/geBatchWizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit f883e18

Please sign in to comment.