Skip to content

Commit

Permalink
Set pension amount if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
karlbaker02 committed Oct 25, 2024
1 parent efe1b92 commit 62db453
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package uk.gov.justice.laa.crime.evidence.builder;

import java.math.BigDecimal;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;
Expand All @@ -15,10 +16,10 @@ public static UpdateEvidenceDTO build(final ApiUpdateIncomeEvidenceRequest reque
.financialAssessmentId(request.getFinancialAssessmentId())
.magCourtOutcome(request.getMagCourtOutcome())
.applicantDetails(request.getApplicantEvidenceItems() != null ? request.getApplicantEvidenceItems().getApplicantDetails() : null)
.applicantPensionAmount(request.getApplicantPensionAmount())
.applicantPensionAmount(request.getApplicantPensionAmount() != null ? request.getApplicantPensionAmount() : BigDecimal.ZERO)
.applicationReceivedDate(request.getMetadata().getApplicationReceivedDate())
.partnerDetails(request.getPartnerEvidenceItems() != null ? request.getPartnerEvidenceItems().getApplicantDetails() : null)
.partnerPensionAmount(request.getPartnerPensionAmount())
.partnerPensionAmount(request.getPartnerPensionAmount() != null ? request.getPartnerPensionAmount() : BigDecimal.ZERO)
.applicantIncomeEvidenceItems(request.getApplicantEvidenceItems() != null ? request.getApplicantEvidenceItems().getIncomeEvidenceItems() : null)
.partnerIncomeEvidenceItems(request.getPartnerEvidenceItems() != null ? request.getPartnerEvidenceItems().getIncomeEvidenceItems() : null)
.evidencePending(request.getMetadata().getEvidencePending())
Expand Down

0 comments on commit 62db453

Please sign in to comment.