Patch level : 12.0 1028

Files correlati     : bacnv.exe

Commento :

Migliorate le segnalazioni e codificate le categorie mancanti nella conversione dell'anagrafica articoli per il CONAI
This commit is contained in:
francescofucarino 2021-01-20 17:08:42 +01:00
parent aa9d6fadeb
commit 77d77ba3ed

View File

@ -1329,7 +1329,7 @@ void TConversione_archivi::sort_sal(int year) const
sal.set_anno_es(year); sal.set_anno_es(year);
sal.clear_saldi(year); sal.clear_saldi(year);
long numreg = 0L; long numreg = 0L;
tiposal tsal = normale; tiposal tsal = saldo_normale;
bool provvis = FALSE; bool provvis = FALSE;
TDate datareg; TDate datareg;
@ -1360,7 +1360,7 @@ void TConversione_archivi::sort_sal(int year) const
causali.zero(); causali.zero();
const char* codcaus = mov.get(MOV_CODCAUS); const char* codcaus = mov.get(MOV_CODCAUS);
tsal = normale; tsal = saldo_normale;
if (*codcaus) // cerca causale per determinare il tipoo del saldo if (*codcaus) // cerca causale per determinare il tipoo del saldo
{ {
causali.put(CAU_CODCAUS, codcaus); causali.put(CAU_CODCAUS, codcaus);
@ -1369,10 +1369,10 @@ void TConversione_archivi::sort_sal(int year) const
{ {
const char ac = causali.get_char(CAU_MOVAP); const char ac = causali.get_char(CAU_MOVAP);
if (ac == 'A') if (ac == 'A')
tsal = apertura; tsal = saldo_apertura;
else else
if (ac == 'C') if (ac == 'C')
tsal = chiusura; tsal = saldo_chiusura;
} }
} }
@ -2409,7 +2409,7 @@ long TConversione_archivi::convert_CONAI()
break; break;
TString art(anamag.get(ANAMAG_CODART).as_string()); TString art(anamag.get(ANAMAG_CODART).as_string());
TArticolo_conai artc(art); TArticolo_conai artc(art,&log);
TRecord_array conart(art, LF_CONART); TRecord_array conart(art, LF_CONART);
TRectype conrec(LF_CONART); TRectype conrec(LF_CONART);
int r = 1; int r = 1;