diff --git a/ve/ve2200.cpp b/ve/ve2200.cpp index 282d605c3..6063b66d6 100755 --- a/ve/ve2200.cpp +++ b/ve/ve2200.cpp @@ -469,6 +469,16 @@ bool TCondizioni_vendita::handle_copy(TMask_field &b, KEY k) TRectype from(LF_UMART); TRectype to(LF_UMART); + const TString & codf = m.get(F_FROMCOD); + + if (codf.full()) + from.put(UMART_CODART, codf); + + const TString & codt = m.get(F_TOCOD); + + if (codt.full()) + to.put(UMART_CODART, codt); + TCursor curs(&rel_umart, filtro, 1, from.empty() ? NULL : &from, to.empty() ? NULL : &to); const long items = curs.items(); // metto in items il numero di elementi del cursore TProgind bar(items,"Scansione articoli", FALSE, TRUE); //barra di avanzamento