diff --git a/src/fp/fplib01.cpp b/src/fp/fplib01.cpp index 25d688b95..eddcd535f 100644 --- a/src/fp/fplib01.cpp +++ b/src/fp/fplib01.cpp @@ -26,6 +26,10 @@ #include #include + +#include +#include + bool set_connection(SSimple_query& s) { bool ok = true; @@ -1164,8 +1168,15 @@ bool TDoc_fp::insert(TPaf_record& p, bool force) else { ok = p.insert(force); + if (!ok) { + //LOG PROVVISORIO PER RISOLVERE PROBLEMA TOSTO + ofstream myfile; + myfile.open("logFP_simo.txt"); + myfile << p.insert_string(); + myfile.close(); + // _log.log(2, fp_db().sq_get_token_text_error(1)); _log.log(2, p.insert_string()); } @@ -2889,7 +2900,7 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc) paf2500f.set("PO_GESTIONE", stato_paf()); ok &= insert(paf2500f); } - // + // >< if (_gestioneallegati) { TPaf_record& paf2600f = _paf_container.get_paf("PAF2600F");