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