diff --git a/ve/ve2200.cpp b/ve/ve2200.cpp index 83544120b..be75b13ef 100755 --- a/ve/ve2200.cpp +++ b/ve/ve2200.cpp @@ -91,8 +91,11 @@ TMask_copy::TMask_copy(const TMask& m, const bool enable_catven, const bool enab { enable(F_L_CATVEN, enable_catven); enable(F_C_TIPOCF, enable_tipocf); - TList_field& l = lfield(F_C_TIPOCF); - l.replace_items(" | "," | "); + if (!enable_tipocf) + { + TList_field& l = lfield(F_C_TIPOCF); + l.replace_items(" | "," | "); + } enable(F_C_CODCF, enable_tipocf); set(F_TIPO,m.get(F_TIPO)); } @@ -622,6 +625,8 @@ bool TCondizioni_vendita::handle_copy(TMask_field &b, KEY k) } bar.addstatus(1); + rec.put(RCONDV_TIPOCF,msk.get(F_C_TIPOCF)); + rec.put(RCONDV_CODCF,msk.get(F_C_CODCF)); rec.put(RCONDV_COD, newcode); rec.put(RCONDV_PREZZO, prezzo); int err = rel.write();