From 6be7e2d4f01908b1aa1858a466ab850dd2acea22 Mon Sep 17 00:00:00 2001 From: Simoe Date: Thu, 22 Dec 2022 12:49:08 +0100 Subject: [PATCH] Messaggio interno: patch con log errore esteso --- src/fp/fplib01.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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");