Patch level : 12.0 952
Files correlati : fp0.exe Commento : Aggiunta esportazione riferimento documento per note credito
This commit is contained in:
parent
cf53a3a422
commit
b141d0d57e
@ -556,6 +556,8 @@ const char* TPaf_container::paf_to_prefix(const char * paf)
|
|||||||
return "PA";
|
return "PA";
|
||||||
if (paf_name == "PAF1200F")
|
if (paf_name == "PAF1200F")
|
||||||
return "PB";
|
return "PB";
|
||||||
|
if (paf_name == "PAF1400F")
|
||||||
|
return "PD";
|
||||||
if (paf_name == "PAF1600F")
|
if (paf_name == "PAF1600F")
|
||||||
return "PF";
|
return "PF";
|
||||||
if (paf_name == "PAF1700F")
|
if (paf_name == "PAF1700F")
|
||||||
@ -609,6 +611,8 @@ TPaf_container::TPaf_container()
|
|||||||
_pafs.insert(std::pair<const char *, TPaf_record>("PAF1100F", TPaf_record("PAF1100F")));
|
_pafs.insert(std::pair<const char *, TPaf_record>("PAF1100F", TPaf_record("PAF1100F")));
|
||||||
// Ordini
|
// Ordini
|
||||||
_pafs.insert(std::pair<const char *, TPaf_record>("PAF1200F", TPaf_record("PAF1200F")));
|
_pafs.insert(std::pair<const char *, TPaf_record>("PAF1200F", TPaf_record("PAF1200F")));
|
||||||
|
// DatiFattureCollegate
|
||||||
|
_pafs.insert(std::pair<const char *, TPaf_record>("PAF1400F", TPaf_record("PAF1400F")));
|
||||||
// DDT Testata
|
// DDT Testata
|
||||||
_pafs.insert(std::pair<const char *, TPaf_record>("PAF1600F", TPaf_record("PAF1600F")));
|
_pafs.insert(std::pair<const char *, TPaf_record>("PAF1600F", TPaf_record("PAF1600F")));
|
||||||
// DDT Righe
|
// DDT Righe
|
||||||
@ -1662,6 +1666,16 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc)
|
|||||||
// paf2700f.set("PQ_ART73", true);
|
// paf2700f.set("PQ_ART73", true);
|
||||||
paf2700f.set("PQ_GESTIONE", "D");
|
paf2700f.set("PQ_GESTIONE", "D");
|
||||||
ok &= insert(paf2700f);
|
ok &= insert(paf2700f);
|
||||||
|
// <DatiOrdineAcquisto>
|
||||||
|
if(doc.is_nota_credito() && doc.get(DOC_NUMDOCRIF).full())
|
||||||
|
{
|
||||||
|
TPaf_record& paf1400f = _paf_container.get_paf("PAF1400F");
|
||||||
|
reset(paf1400f);
|
||||||
|
paf1400f.set("PD_IDDOC", doc.get(DOC_NUMDOCRIF));
|
||||||
|
paf1400f.set("PD_DATADOC", doc.get_date(DOC_DATADOCRIF));
|
||||||
|
ok &= insert(paf1400f);
|
||||||
|
}
|
||||||
|
// </DatiOrdineAcquisto>
|
||||||
// </DatiGenerali>
|
// </DatiGenerali>
|
||||||
// Azzera DDT
|
// Azzera DDT
|
||||||
TPaf_record& paf1600f = _paf_container.get_paf("PAF1600F");
|
TPaf_record& paf1600f = _paf_container.get_paf("PAF1600F");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user