From 65af2e0bbbed59ebaae275e4ebe9a8829ee5596d Mon Sep 17 00:00:00 2001 From: mtollari Date: Tue, 24 Apr 2018 09:15:40 +0000 Subject: [PATCH] Patch level : 12.0 566 Files correlati : bs Commento : - Sistemato stato documenti in lettura - Tolta lettura dall'articolo del codice IVA git-svn-id: svn://10.65.10.50/branches/R_10_00@24472 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- src/bs/bs0300.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bs/bs0300.cpp b/src/bs/bs0300.cpp index 1765e351f..75469abd0 100644 --- a/src/bs/bs0300.cpp +++ b/src/bs/bs0300.cpp @@ -1319,7 +1319,7 @@ void TSknet_sync::sync_doc() static TDocumento existDoc; if (existDoc.read('D', datadoc.year(), numdoc, nd) == NOERR) // Ha uno stato che considero bloccato { - if (existDoc.stato() <= '3')// && docs.get("DOCANNULLATO").as_int() == 1) + if (existDoc.stato() < '3')// && docs.get("DOCANNULLATO").as_int() == 1) { existDoc.remove(); } @@ -1467,9 +1467,7 @@ void TSknet_sync::sync_doc() TString codiva = docs.get("CodIva").as_string(); if (codiva.blank() || codiva == "0") { - codiva = cache().get(LF_ANAMAG, codart, "CODIVA"); - if (codiva.blank()) - codiva = ini_get_string(CONFIG_DITTA, "BS", "SKCodIvaDef"); + codiva = ini_get_string(CONFIG_DITTA, "BS", "SKCodIvaDef"); } else {