Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public class Client extends AuditableEntity {
* </p>
*/
@Column(name = "enable_effort_hours")
private boolean enableEffortHours;
private Boolean enableEffortHours;

/**
* <p>
Expand Down Expand Up @@ -381,7 +381,7 @@ public void setStartDate(Date startDate) {
*
* @return whether this client enabled effort hours.
*/
public boolean isEffortHoursEnabled() {
public Boolean isEffortHoursEnabled() {
return this.enableEffortHours;
}

Expand All @@ -391,7 +391,7 @@ public boolean isEffortHoursEnabled() {
* @param enableEffortHours
* whether this client enabled effort hours.
*/
public void setEnableEffortHours(boolean enableEffortHours) {
public void setEnableEffortHours(Boolean enableEffortHours) {
this.enableEffortHours = enableEffortHours;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public String getBillingAccountsForProject() {
billingAccount.put("cca", String.valueOf(requireCCAs[i]));
// Add enableEffortHours for each billing account
Client client = billingAccountsByProject.get(i).getClient();
if (client != null) {
if (client != null && client.isEffortHoursEnabled() != null) {
billingAccount.put("enableEffortHours", client.isEffortHoursEnabled());
} else {
billingAccount.put("enableEffortHours", false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ protected void executeAction() throws Exception {
billingAccount.put("cca", String.valueOf(requireCCAs[i]));
// Add enableEffortHours for each billing account
Client client = billingProjects.get(i).getClient();
if (client != null) {
if (client != null && client.isEffortHoursEnabled() != null) {
billingAccount.put("enableEffortHours", client.isEffortHoursEnabled());
} else {
billingAccount.put("enableEffortHours", false);
Expand Down