private boolean calculateRuns(){
  String sql="SELECT COUNT(*) FROM C_Recurring_Run WHERE C_Recurring_ID=?";
  int current=DB.getSQLValue(get_TrxName(),sql,getC_Recurring_ID());
  int remaining=getRunsMax() - current;
  setRunsRemaining(remaining);
  save();
  return remaining > 0;
}

private boolean calculateRuns ( ) { String sql = "SELECT COUNT(*) FROM C_Recurring_Run WHERE C_Recurring_ID=?" ; int current = DB . getSQLValue ( get_TrxName ( ) , sql , getC_Recurring_ID ( ) ) ; int remaining = getRunsMax ( ) - current ; setRunsRemaining ( remaining ) ; save ( ) ; return remaining > 0 ; }
calculate & set remaining runs
