diff --git a/build/fp0.vcxproj b/build/fp0.vcxproj
index 0238bddce..d959ad06b 100644
--- a/build/fp0.vcxproj
+++ b/build/fp0.vcxproj
@@ -284,6 +284,9 @@
true
true
+
+ true
+
diff --git a/build/fp0.vcxproj.filters b/build/fp0.vcxproj.filters
index 4a6d12059..07c466a9f 100644
--- a/build/fp0.vcxproj.filters
+++ b/build/fp0.vcxproj.filters
@@ -150,6 +150,9 @@
Sqls
+
+ Sqls
+
diff --git a/src/fp/fplib01.cpp b/src/fp/fplib01.cpp
index 0db424dbf..3b73ed067 100644
--- a/src/fp/fplib01.cpp
+++ b/src/fp/fplib01.cpp
@@ -26,10 +26,6 @@
#include
#include
-
-#include
-#include
-
bool set_connection(SSimple_query& s)
{
bool ok = true;
@@ -1171,12 +1167,6 @@ bool TDoc_fp::insert(TPaf_record& p, bool 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());
}
@@ -1860,6 +1850,8 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc)
if (mail.full())
paf0200f.set("P2_CONTATTIMAIL", mail);
+ //QUESTA COSA IN RELEASE NON FUNZIONA
+
//TDate data_iscriz_albo = get_firm().get_date(NDT_DATAISCRAA);
//if(data_iscriz_albo.ok())
//paf0200f.set("P2_DTISCRIZEALBO", data_iscriz_albo);
diff --git a/src/fp/sql/fp0122.sql b/src/fp/sql/fp0122.sql
new file mode 100644
index 000000000..653559f18
--- /dev/null
+++ b/src/fp/sql/fp0122.sql
@@ -0,0 +1,6 @@
+ALTER TABLE PAF0200F ALTER COLUMN P2_DTISCRIZEALBO DATE NULL
+IF EXISTS (SELECT* FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS WHERE CONSTRAINT_NAME ='PAF0200_NEWDF_DTISCR')
+BEGIN
+ ALTER TABLE PAF0200F DROP CONSTRAINT PAF0200_NEWDF_DTISCR
+END
+