Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* DST-17837
Clarification on Active/Inactive Providers in the csv 'Export Users' Extract

* Removing unused field.
  • Loading branch information
paulmiller-bcl authored Sep 5, 2024
1 parent e87820e commit 5fc15f5
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Type;
import uk.co.bconline.ndelius.model.entity.converter.YNConverter;

import javax.persistence.*;
import java.io.Serializable;
Expand All @@ -29,12 +30,12 @@ public class ProbationAreaExportEntity implements Serializable {
@Column(name = "DESCRIPTION")
private String description;

@Column(name = "END_DATE")
@Type(type = "java.time.LocalDate")
private LocalDate endDate;
@Column(name = "SELECTABLE")
@Convert(converter = YNConverter.class)
private boolean selectable;

public String getExportDescription()
{
return description + " (" + code + ")" + ((getEndDate() != null && getEndDate().isBefore(now())) ? " [Inactive]" : "");
return description + " (" + code + ")" + (selectable ? "" : " [Inactive]");
}
}

0 comments on commit 5fc15f5

Please sign in to comment.