Показать сообщение отдельно
Старый 11.06.2004, 17:59   #7  
George Nordic is offline
George Nordic
Модератор
Аватар для George Nordic
Злыдни
 
4,480 / 1255 (50) ++++++++
Регистрация: 17.12.2003
Адрес: Moscow
Записей в блоге: 9
PHP код:
public boolean validate() {
  boolean ret false;
  RMETmpSubLotLog tmp;
  ;
  ret super();
  tmp.setTmpData(RMETmpSubLotLog_ds.cursor());
  select sum(amountfrom tmp;  // return sum   = before modification!!!
  if (tmp.orig().Amount tmp.Amount >= element.getLimit()) {
    return checkfailed('Overflow limit');
  }
  return ret;

А так?