Patch level : 12.0
Files correlati : fplib01.cpp Commento Interno: Corretto il giro di invio degli allegati trami fattura elettronica. C'erano errori sintattici (parentesi sballate) e inoltre venivano passati solo i riferimenti relativi ai file da inviare e non quelli assoluti. questo "rompeva" alcune funzioni di libreria come ad esempio la funzione exists() che tornava false anche quando il documento esisteva. Ora il giro è stato sistemato e testato in un ambiente di prova. Dopo averlo testato su qualche cliente la modifica verrà replicata anche per l'invio delle integrazioni
This commit is contained in:
parent
2a5237a58a
commit
fc499b1c46
@ -1476,6 +1476,7 @@ bool TDoc_fp::add_row_alleg(TFilename& file, long& nprogr, TPaf_record& paf)
|
||||
{
|
||||
static TString dest_path;
|
||||
static TString dest_usr_path;
|
||||
|
||||
bool ok = false;
|
||||
dest_path.cut(0) << _def_fld << file.name();
|
||||
dest_usr_path.cut(0) << _def_usr_fld << file.name();
|
||||
@ -1742,10 +1743,7 @@ bool TDoc_fp::export_paf0100f()
|
||||
tel << get_firm().get(NDT_PTEL) << get_firm().get(NDT_TEL);
|
||||
paf0100f.set("P1_TELEFONO", tel);
|
||||
paf0100f.set("P1_MAIL", get_firm().get(NDT_MAIL));
|
||||
//paf0100f.set("P1_GESTIONE", stato_paf());
|
||||
|
||||
//SCASSO QUI PER FARE TEST
|
||||
paf0100f.set("P1_GESTIONE", "WW");
|
||||
paf0100f.set("P1_GESTIONE", stato_paf());
|
||||
|
||||
paf0100f.set("P1_ERRINT", "");
|
||||
// </DatiTrassmissione>
|
||||
@ -2899,9 +2897,14 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc)
|
||||
paf2500f.set("PO_GESTIONE", stato_paf());
|
||||
ok &= insert(paf2500f);
|
||||
}
|
||||
// </DatiPagamento> ><
|
||||
|
||||
//IL GIRO DI ESPORTAZIONE DEGLI ALLEGATI PER COM'ERA FATTO PRECEDENTEMENTE NON FUNZIONAVA
|
||||
|
||||
if (_gestioneallegati)
|
||||
{
|
||||
TFilename golem_path = firm2dir(prefix().get_codditta());
|
||||
golem_path.add("golem");
|
||||
|
||||
TPaf_record& paf2600f = _paf_container.get_paf("PAF2600F");
|
||||
long nprogr = 0; // Numero di file allegati
|
||||
// Se abilitato stampo il documento e lo allego
|
||||
@ -2944,6 +2947,7 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
TToken_string allegati(doc.get("COLL_GOLEM"), '\n');
|
||||
bool load_allegati = true;
|
||||
if (allegati.full())
|
||||
@ -2961,15 +2965,20 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc)
|
||||
FOR_EACH_TOKEN(allegati, row)
|
||||
{
|
||||
const TToken_string entry(row);
|
||||
if (entry.get(0, fname) && fname.exist())
|
||||
if (entry.get(0, fname))
|
||||
{
|
||||
if (!add_row_alleg(fname, nprogr, paf2600f))
|
||||
return false;
|
||||
TFilename file_path = golem_path;
|
||||
file_path.add(fname.name());
|
||||
|
||||
if (file_path.exist())
|
||||
{
|
||||
if (!add_row_alleg(file_path, nprogr, paf2600f))
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Tabella di non invio XML
|
||||
|
Loading…
x
Reference in New Issue
Block a user