function CF_QTY_STRFormula return Char is res varchar2(1000); begin if :CF_UNIT='шт' then res:=supermag.RussianSpell.numtochar(:quantity,0); else res :=supermag.RussianSpell.numtochar(:quantity,3,','); end if; return (res); end;
function F_QuantityFormatTrigger return boolean is begin if ((:quantity-TRUNC(:quantity))<>0) then SRW.SET_FORMAT_MASK('-NN NNN NN0.000'); else SRW.SET_FORMAT_MASK('-NNN NNN NN0'); end if; return (TRUE); end;