SDF08 update AS*T fix
This commit is contained in:
parent
817166005f
commit
6b3d68320e
1 changed files with 4 additions and 3 deletions
|
|
@ -401,9 +401,10 @@ public class Sdf08Executor extends AbstractExecutor<SDf08> {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateReg(Statement s, Registry r) {
|
private void updateReg(Statement s, Registry r) {
|
||||||
r.setBalance(s.getAmount());
|
r.setCheckBalance(s.getAmount());
|
||||||
r.setCheckBalance(safeBD(s.getAmount()));
|
BigDecimal balance = BigDecimalUtil.safeBD(r.getBalance());
|
||||||
r.setDiffBalance(r.getBalance().subtract(r.getCheckBalance()));
|
BigDecimal checkBalance = BigDecimalUtil.safeBD(r.getCheckBalance());
|
||||||
|
r.setDiffBalance(balance.subtract(checkBalance));
|
||||||
r.setUpdated(Instant.now());
|
r.setUpdated(Instant.now());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue