Add a helper method to test if an instance of SumChargedEffort is zero.

FEA: ItEr75S27PerProjectDashboard
This commit is contained in:
Nacho Barrientos 2011-11-04 15:44:38 +01:00 committed by Manuel Rego Casasnovas
parent b09834e144
commit 8409f497d5

View file

@ -70,4 +70,8 @@ public class SumChargedEffort extends BaseEntity {
return directChargedEffort.plus(indirectChargedEffort);
}
public boolean isZero() {
return directChargedEffort.isZero() && indirectChargedEffort.isZero();
}
}