Skip to content

Commit

Permalink
Replace fieldname with label for 'First installment paid' checkbox
Browse files Browse the repository at this point in the history
Replaced hard-coded fieldname with label for 'First installment paid' checkbox, since batch-Defaults contains field labels as keys
  • Loading branch information
salesforce-suyash-more committed Nov 19, 2024
1 parent 129439f commit a03a634
Show file tree
Hide file tree
Showing 2 changed files with 3 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 = 'AllowFirstInstallment__f';
private static final String AllowFirstInstallmentPaid = 'First installment paid';

@TestVisible
private GiftBatchSelector giftBatchSelector {
Expand Down
4 changes: 2 additions & 2 deletions force-app/main/default/lwc/geBatchWizard/geBatchWizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a03a634

Please sign in to comment.