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
This commit is contained in:
mtollari 2018-04-24 09:15:40 +00:00
parent abfac0b7a3
commit 65af2e0bbb

View File

@ -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
{