File tree Expand file tree Collapse file tree
src/main/java/uk/gov/hmcts/reform/pcs/ccd Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ private PCSCase getSubmittedCase(long caseReference) {
131131 .legislativeCountry (pcsCaseEntity .getLegislativeCountry ())
132132 .caseManagementLocationNumber (pcsCaseEntity .getCaseManagementLocation ())
133133 .dateSubmitted (getClaimSubmittedDate (pcsCaseEntity ))
134+ .claimIssueDate (getClaimIssueDate (pcsCaseEntity ))
134135 .build ();
135136
136137 setDerivedProperties (pcsCase , pcsCaseEntity );
@@ -162,6 +163,13 @@ private LocalDateTime getClaimSubmittedDate(PcsCaseEntity pcsCaseEntity) {
162163 .orElse (null );
163164 }
164165
166+ private LocalDateTime getClaimIssueDate (PcsCaseEntity pcsCaseEntity ) {
167+ return pcsCaseEntity .getClaims ().stream ()
168+ .findFirst ()
169+ .map (ClaimEntity ::getClaimIssuedDate )
170+ .orElse (null );
171+ }
172+
165173 private void setDerivedProperties (PCSCase pcsCase , PcsCaseEntity pcsCaseEntity ) {
166174 boolean pcqIdSet = findPartyForCurrentUser (pcsCaseEntity )
167175 .map (party -> party .getPcqId () != null )
Original file line number Diff line number Diff line change @@ -580,6 +580,9 @@ public class PCSCase {
580580 @ CCD (access = {ClaimantAccess .class , DefendantAccess .class })
581581 private LocalDateTime dateSubmitted ;
582582
583+ @ CCD (access = {ClaimantAccess .class , DefendantAccess .class })
584+ private LocalDateTime claimIssueDate ;
585+
583586 @ CCD (
584587 searchable = false
585588 )
You can’t perform that action at this time.
0 commit comments