From 14e048d343e50a88d660632191334b382a88eed4 Mon Sep 17 00:00:00 2001 From: luca Date: Mon, 7 Apr 2008 15:41:22 +0000 Subject: [PATCH] Patch level :10.0 Files correlati : Ricompilazione Demo : [ ] Commento :D/A nei giroconti git-svn-id: svn://10.65.10.50/trunk@16473 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ca/ca3700.cpp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) 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);