diff --git a/mg/mg3300.cpp b/mg/mg3300.cpp index 9aaafc16b..4e0e05eec 100755 --- a/mg/mg3300.cpp +++ b/mg/mg3300.cpp @@ -96,7 +96,7 @@ bool TForm_schedemag::validate(TForm_item &cf, TToken_string &s) if (subcode=="CODGRUPPOART") { TString valore(relation()->lfile(LF_ANAMAG).get("CODART")); if (_artlev->enabled()) - valore.cut(min(valore.len(),_artlev->packed_lenght(_tolivart))); + valore.cut(min(valore.len(),_artlev->packed_length(_tolivart))); cf.set(valore); return TRUE; } @@ -178,7 +178,7 @@ bool TForm_schedemag::ragg_exprs(int livart,int livgiac) // sezioni livello codice piece="CODART"; if (_artlev->enabled()) - piece << "[1," << _artlev->packed_lenght(tolivart) <<']'; + piece << "[1," << _artlev->packed_length(tolivart) <<']'; *_rmov_raggcond<< (_rmov_raggcond->empty()? "":"+" )<add(piece); _rmov_joinexp->cut(0) << piece << "==" << piece; @@ -186,7 +186,7 @@ bool TForm_schedemag::ragg_exprs(int livart,int livgiac) { piece="LIVGIAC"; if (_giaclev->enabled()) - piece << "[1," << _giaclev->packed_lenght(tolivgiac) <<']'; + piece << "[1," << _giaclev->packed_length(tolivgiac) <<']'; *_rmov_raggcond << '+' << piece; _rmov_sortexp->add(piece); } @@ -312,7 +312,7 @@ void TForm_schedemag::setdett_perart(bool percatmer,bool sottocatmer,int livart, catmercod << (sottocatmer ? "[1,3]" :""); cond << catmercod << '+'; } - cond << "CODART[1," << _artlev->packed_lenght(_tolivart) << ']'; + cond << "CODART[1," << _artlev->packed_length(_tolivart) << ']'; s.setcondition(cond,_strexpr); } // settaggio raggruppamenti codice sulla scheda diff --git a/mg/mglib03.cpp b/mg/mglib03.cpp index 562328001..ac3f67eaf 100755 --- a/mg/mglib03.cpp +++ b/mg/mglib03.cpp @@ -82,7 +82,7 @@ bool TForm_stampemg::validate(TForm_item &cf, TToken_string &s) int lv=atoi(s.get()); do { valore=relation()->lfile(LF_ANAMAG).get("CODART"); - valore.rpad(25).cut(_artlev->packed_lenght(lv)); + valore.rpad(25).cut(_artlev->packed_length(lv)); } while (--lv>0 && valore==""); cf.set(valore); @@ -202,7 +202,7 @@ bool TForm_stampemg::setdettaglio(bool show, int fromlivart,int livart,int froml sname << i; TForm_subsection &s=(TForm_subsection &)find_field('B',odd_page,sname); TString cond(s.condition()); - cond << "[1," << _giaclev->packed_lenght(i) <<']'; + cond << "[1," << _giaclev->packed_length(i) <<']'; s.setcondition(cond,_strexpr); } // sezioni livello codice @@ -211,7 +211,7 @@ bool TForm_stampemg::setdettaglio(bool show, int fromlivart,int livart,int froml sname << i; TForm_subsection &s=(TForm_subsection &)find_field('B',odd_page,sname); TString cond(s.condition()); - cond << '[' << (i==1 ? 1:_artlev->packed_lenght(i-1))<<',' << _artlev->packed_lenght(i) <<']'; + cond << '[' << (i==1 ? 1:_artlev->packed_length(i-1))<<',' << _artlev->packed_length(i) <<']'; s.setcondition(cond,_strexpr); }