From 6b5e71e7565a5a5a8542a8dec9bcbd8a6e1836f4 Mon Sep 17 00:00:00 2001 From: Alessandro Bonazzi Date: Wed, 30 Sep 2020 23:59:41 +0200 Subject: [PATCH] Patch level : 12.0 998 Files correlati : cg4.exe Commento : MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nella stampa registri la variabile agenzie di viagio non ere inizializzata per cui poteva considerare agenzie di viaggio per l'IVA per cassa anche ditte che non lo erano. Nella liquidazione IVA la restore status non funzionava più. Questo aveva efftto per i trimestrali che cacolano 3 mesi e stampano sul terzo che non veniva mai esaminato. --- src/include/relation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/relation.cpp b/src/include/relation.cpp index b35c33806..e6d048012 100755 --- a/src/include/relation.cpp +++ b/src/include/relation.cpp @@ -382,7 +382,8 @@ void TRelation::restore_status() _status.get(_files.items()*3 - 1); // mi riposiziono prima di tutti i first_match for (i = 0; i < _reldefs.items(); i++) { - const bool first_match = _status.get_int() ? TRUE : FALSE; + const bool first_match = _status.get()[0] == 'X'; + reldef(i)._first_match = first_match; } }