diff --git a/ca/ca3700.cpp b/ca/ca3700.cpp index 24786449b..2be5cb821 100755 --- a/ca/ca3700.cpp +++ b/ca/ca3700.cpp @@ -840,14 +840,24 @@ F=IMF*/ sezione_normale = 'A'; else sezione_normale = 'D'; + } + else + { + if (indbil == 1 || indbil == 3) //attivita' e costi sono in DARE + sezione_normale = 'D'; + else //passivita' e ricavi sono in AVERE + sezione_normale = 'A'; } } else { //iva errata -> non ha causali -> cerca di capire se cliente o fornitore - if (newdoc != NULL && newdoc->get_char(DOC_TIPOCF) == 'C') - sezione_normale = 'A'; - else - sezione_normale = 'D'; + if (newdoc != NULL) + { + if (newdoc->get_char(DOC_TIPOCF) == 'C') + sezione_normale = 'A'; + else + sezione_normale = 'D'; + } } imp.normalize(sezione_normale);