Skip to content

Commit

Permalink
Merge pull request #7263 from SalesforceFoundation/feature/254__W-170…
Browse files Browse the repository at this point in the history
…48425-Donation-Amount-gets-cleared-out-on-DI-record

W-17048425 - Donation Amount field on DI record gets cleared out after Batch processing
  • Loading branch information
lparrott authored Nov 11, 2024
2 parents 83ef55a + cc95c0d commit 0a60a7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions force-app/main/default/classes/BDI_DataImportService.cls
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,9 @@ global with sharing class BDI_DataImportService {
if (apexJobId != null && listDI.size() > 0) {
List<DataImportBatch__c> listBatch = [SELECT Name, Batch_Number__c, Batch_Status__c, Batch_Defaults__c,
Form_Template__c, RequireTotalMatch__c, Expected_Count_of_Gifts__c,
Expected_Total_Batch_Amount__c, Batch_Table_Columns__c, LastModifiedDate
Expected_Total_Batch_Amount__c, Batch_Table_Columns__c, LastModifiedDate, GiftBatch__c
FROM DataImportBatch__c WHERE Id= :listDI[0].NPSP_Data_Import_Batch__c LIMIT 1];
if (listBatch.size() > 0 ) {
if (listBatch.size() > 0 && listBatch[0].GiftBatch__c) {
GiftBatch giftBatch = new GiftBatch(listBatch[0]);
Boolean firstInstallmentPaid = giftBatch.shouldPayFirstInstallment();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private class GiftEntryProcessorQueue_TEST {
BDI_MappingServiceAdvanced.DEFAULT_DATA_IMPORT_FIELD_MAPPING_SET_NAME;
UTIL_CustomSettingsFacade.setDataImportSettings(dataImportSettings);

DataImportBatch__c giftBatch = new DataImportBatch__c();
DataImportBatch__c giftBatch = new DataImportBatch__c(GiftBatch__c = true);
insert giftBatch;

List<DataImport__c> giftsToInsert = new List<DataImport__c>();
Expand Down

0 comments on commit 0a60a7f

Please sign in to comment.