private void cmd_calculateDifference(){
  BigDecimal previousValue, actualValue;
  Timestamp today=TimeUtil.getDay(System.currentTimeMillis());
  MCash cash=MCash.get(p_pos.getCtx(),p_pos.getC_CashBook_ID(),today,null);
  v_previousBalance.setValue(cash.getEndingBalance());
  previousValue=cash.getEndingBalance();
  actualValue=(BigDecimal)v_ActualBalance.getValue();
  v_difference.setValue(actualValue.subtract(previousValue));
}

private void cmd_calculateDifference ( ) { BigDecimal previousValue , actualValue ; Timestamp today = TimeUtil . getDay ( System . currentTimeMillis ( ) ) ; MCash cash = MCash . get ( p_pos . getCtx ( ) , p_pos . getC_CashBook_ID ( ) , today , null ) ; v_previousBalance . setValue ( cash . getEndingBalance ( ) ) ; previousValue = cash . getEndingBalance ( ) ; actualValue = ( BigDecimal ) v_ActualBalance . getValue ( ) ; v_difference . setValue ( actualValue . subtract ( previousValue ) ) ; }
calculate difference between previous balance and actual for cash scrutiny
