fixes the empty block with the apropriate condition and the

needed behaviour.

FEA: ItEr76S22ExpenseTrackingSystem
This commit is contained in:
Susana Montes Pedreira 2012-06-17 13:43:27 +01:00
parent fbad40f945
commit 99d7a69885

View file

@ -79,8 +79,8 @@ public final class ExpenseSheetConverter {
}
BigDecimal value = line.getValue();
if (value != null && value.compareTo(BigDecimal.ZERO) > 0) {
if (value == null || value.compareTo(BigDecimal.ZERO) < 0) {
value = BigDecimal.ZERO;
}
String resourceCode = null;
if (line.getResource() != null) {