From 60888928a0c04c71d157f53d0e2da329fad46299 Mon Sep 17 00:00:00 2001 From: Alessandro Bonazzi Date: Tue, 7 Jul 2020 15:03:07 +0200 Subject: [PATCH] 2Patch level : 12.0 974 Files correlati : bacnv.exe Commento : MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Azzerati cattegoria e peso CONAI quando il codice categoria รจ inesistente --- src/ba/bacnv.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ba/bacnv.cpp b/src/ba/bacnv.cpp index 9457504b4..187d6b581 100755 --- a/src/ba/bacnv.cpp +++ b/src/ba/bacnv.cpp @@ -2472,6 +2472,10 @@ void TConversione_archivi::update_righe_doc() r.zero(old_conai_peso[j]); changed = true; } + const TString & sottocat = r.get(conai_sottocat_name(j + 1)); + + if (sottocat.full() && cache().get("&VESCC", sottocat).empty()) + r.zero(conai_sottocat_name(j + 1)); if (r.get(conai_sottocat_name(j + 1)).blank() && r.get(conai_peso_name(j + 1)).full()) {