From 98bca7f97329f9f3c60243cf0cfa0aa6a3b1d694 Mon Sep 17 00:00:00 2001 From: luca83 Date: Fri, 31 Jul 2009 16:12:47 +0000 Subject: [PATCH] Patch level : 10.0 patch 404 Files correlati : lv2 Ricompilazione Demo : [ ] Commento : Corretta posizione delle destroy degli array delle quanta' git-svn-id: svn://10.65.10.50/trunk@19177 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- lv/lv2400.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;