ItEr59S04ValidacionEProbasFuncionaisItEr58S04: [Bug #497] Advance consolidation was not working properly. The pending hours calculation was wrong.
This commit is contained in:
parent
daa48353e3
commit
5aba8ae2bb
1 changed files with 6 additions and 4 deletions
|
|
@ -229,10 +229,12 @@ public class AdvanceConsolidationModel implements IAdvanceConsolidationModel {
|
|||
.getEndDate());
|
||||
|
||||
Integer pendingHours = BigDecimal.ONE.subtract(
|
||||
value.getValue().divide(new BigDecimal(100),
|
||||
RoundingMode.DOWN)).multiply(
|
||||
new BigDecimal(resourceAllocation
|
||||
.getOriginalTotalAssigment())).intValue();
|
||||
value.getValue().setScale(2).divide(
|
||||
new BigDecimal(100), RoundingMode.DOWN))
|
||||
.multiply(
|
||||
new BigDecimal(resourceAllocation
|
||||
.getOriginalTotalAssigment()))
|
||||
.intValue();
|
||||
|
||||
resourceAllocation
|
||||
.setOnDayAssignmentRemoval(new DetachDayAssignmentOnRemoval());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue