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