Patch level : 12.0 1076

Files correlati     : ve0.exe ve1.exe ve5.exe ve6.exe fp0.exe li0300a.msk lv2.exe
Commento        :
In fatturazione bolle scritto il cliente originale della fattura nel campo CFORIG quando uso il cliente FATTURARE A per poterlo recuperae nelle lettere d'intento
In configurazione delle lettere d'intento c'è il parametro "Uitlizza il cliente originale nelle fatture" per attivare il meccanismo.
This commit is contained in:
Macchina_Compilatrice 2021-09-08 19:09:54 +02:00
parent 74c3d555bb
commit 04a5e87183

View File

@ -2431,10 +2431,10 @@ void TFatturazione_lav_app::main_loop()
} }
if (cab.full() && cab != "00000") if (cab.full() && cab != "00000")
{ {
doc_updated |= (doc->get(DOC_CODABIA) != abi) || (doc->get(DOC_CODCABA) != cab); doc_updated |= (doc.get(DOC_CODABIA) != abi) || (doc.get(DOC_CODCABA) != cab);
doc->put(DOC_CODABIA, abi); doc.put(DOC_CODABIA, abi);
doc->put(DOC_CODCABA, cab); doc.put(DOC_CODCABA, cab);
doc->put(DOC_IBAN, iban); doc.put(DOC_IBAN, iban);
} }
key.cut(0); key.cut(0);
key.add(cli.get(CLI_TIPOCF)); key.add(cli.get(CLI_TIPOCF));
@ -2459,31 +2459,31 @@ void TFatturazione_lav_app::main_loop()
if (cab.full() && cab != "00000") if (cab.full() && cab != "00000")
{ {
doc_updated |= (doc->get(DOC_CODABIP) != abi) || (doc->get(DOC_CODCABP) != cab); doc_updated |= (doc.get(DOC_CODABIP) != abi) || (doc.get(DOC_CODCABP) != cab);
doc->put(DOC_CODABIP, abi); doc.put(DOC_CODABIP, abi);
doc->put(DOC_CODCABP, cab); doc.put(DOC_CODCABP, cab);
doc->put(DOC_PROGBNP, progbnp); doc.put(DOC_PROGBNP, progbnp);
} }
const TString8 codpag = clirec.get(CLI_CODPAG); const TString8 codpag = cli.get(CLI_CODPAG);
if (codpag.full()) if (codpag.full())
{ {
doc_updated |= (doc->get(DOC_CODPAG) != codpag); doc_updated |= (doc.get(DOC_CODPAG) != codpag);
doc->put(DOC_CODPAG, codpag); doc.put(DOC_CODPAG, codpag);
} }
const TString8 spinc = clienti.get(CFV_PERCSPINC); const TString8 spinc = cli.vendite().get(CFV_PERCSPINC);
if (spinc.full()) if (spinc.full())
{ {
doc_updated |= (doc->get(DOC_PERCSPINC) != spinc); doc_updated |= (doc.get(DOC_PERCSPINC) != spinc);
doc->put(DOC_PERCSPINC, spinc); doc.put(DOC_PERCSPINC, spinc);
} }
const bool addbolli = clienti.get_bool(CFV_ADDBOLLI); const bool addbolli = cli.vendite().get_bool(CFV_ADDBOLLI);
doc_updated |= (doc->get_bool(DOC_ADDBOLLI) != addbolli); doc_updated |= (doc.get_bool(DOC_ADDBOLLI) != addbolli);
doc->put(DOC_ADDBOLLI, addbolli); doc.put(DOC_ADDBOLLI, addbolli);
const TString agente1 = clienti.get(CFV_CODAG1); const TString agente1 = cli.vendite().get(CFV_CODAG1);
if (agente1.full()) if (agente1.full())
{ {
doc_updated |= (doc->get(DOC_CODAGVIS) != agente1); doc_updated |= (doc.get(DOC_CODAGVIS) != agente1);
doc->put(DOC_CODAGVIS, agente1); doc.put(DOC_CODAGVIS, agente1);
} }
if (doc_updated) if (doc_updated)
{ {