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) {
|
||||
r.setCheckBalance(s.getAmount());
|
||||
BigDecimal balance = BigDecimalUtil.safeBD(r.getBalance());
|
||||
BigDecimal checkBalance = BigDecimalUtil.safeBD(r.getCheckBalance());
|
||||
r.setDiffBalance(balance.subtract(checkBalance));
|
||||
r.setBalance(s.getAmount());
|
||||
r.setCheckBalance(BigDecimalUtil.safeBD(s.getAmount()));
|
||||
r.setDiffBalance(r.getBalance().subtract(r.getCheckBalance()));
|
||||
r.setUpdated(Instant.now());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue