diff --git a/lv/lv2400.cpp b/lv/lv2400.cpp index 019f05a00..f56d8906d 100755 --- a/lv/lv2400.cpp +++ b/lv/lv2400.cpp @@ -154,7 +154,7 @@ bool TGenera_documenti_app::crea_documento(const TISAM_recordset& plan) if (!numerazione_ddt(codnum, tpdoc, statoi, statof)) return NOERR; - _quantita.destroy(); + //creo il documento corretto riempiendo i campi che già conosco TDocumento doc('D',anno,codnum,0); doc.put(DOC_TIPODOC, tpdoc); @@ -773,7 +773,11 @@ bool TGenera_documenti_app::transfer() rep->log(0, str); } else + { + _quantita.destroy(); + _quantita_ritirata.destroy(); crea_documento(plan); + } } TReport_book buc;