From 2e06fbd35fac3a1926891da1ecf28161aa338c18 Mon Sep 17 00:00:00 2001 From: mtollari Date: Fri, 28 Apr 2017 15:19:48 +0000 Subject: [PATCH] =?UTF-8?q?Patch=20level=20=20=20=20=20=20=20=20=20:=2012.?= =?UTF-8?q?0=20384=20Files=20correlati=20=20=20=20=20:=20tf=20Commento=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20:=20-=20Sistemate=20le=20libre?= =?UTF-8?q?rie=20per=20il=20nuovo=20modulo=20TF=20-=20Aggiunta=20funzione?= =?UTF-8?q?=20get=5Fiva=5Fsirio()=20per=20ricevere=20l'iva=20del=20produtt?= =?UTF-8?q?ore=20del=20software=20-=20Aggiunta=20funzione=20stoi()=20con?= =?UTF-8?q?=20controllo=20della=20versione=20del=20compilatore,=20=C3=A8?= =?UTF-8?q?=20stata=20aggiunta=20nello=20standard=20C++11.=20=C3=A8=20anco?= =?UTF-8?q?ra=20grezza,=20da=20ricontrollare=20per=20aggiungere=20eventual?= =?UTF-8?q?i=20controlli.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.65.10.50/branches/R_10_00@23762 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- src/include/campo.aut | 1 + src/include/lffiles.h | 2 ++ src/include/modaut.h | 3 ++- src/include/utility.cpp | 20 ++++++++++++++++++++ src/include/utility.h | 8 ++++++++ 5 files changed, 33 insertions(+), 1 deletion(-) diff --git a/src/include/campo.aut b/src/include/campo.aut index b1ac6bc20..464a50487 100755 --- a/src/include/campo.aut +++ b/src/include/campo.aut @@ -48,3 +48,4 @@ ha Hardy Caff ri Riclassificazioni vd Vendita al dettaglio gv Gestione versamenti F24 +tf Trasferimento fatture \ No newline at end of file diff --git a/src/include/lffiles.h b/src/include/lffiles.h index 7b15d32a0..f86b4bae6 100755 --- a/src/include/lffiles.h +++ b/src/include/lffiles.h @@ -190,6 +190,8 @@ #define LF_CONTACT 170 #define LF_IVADIFF 171 #define LF_RMOVANAC 172 +#define LF_TRASFATT 173 +#define LF_IVALIQ 174 #define LF_EXTERNAL 1000 // Files with id >= are considered to be externals diff --git a/src/include/modaut.h b/src/include/modaut.h index 517b4eed7..77803c493 100755 --- a/src/include/modaut.h +++ b/src/include/modaut.h @@ -50,6 +50,7 @@ #define RIAUT 47 #define VDAUT 48 #define GVAUT 49 -#define ENDAUT 50 +#define TFAUT 50 +#define ENDAUT 51 #endif // __MODAUT_H diff --git a/src/include/utility.cpp b/src/include/utility.cpp index 60353f131..1b7f3baa2 100755 --- a/src/include/utility.cpp +++ b/src/include/utility.cpp @@ -692,3 +692,23 @@ void quoted_string(TString& query, const char* val) } query << '\''; } + +TString get_iva_sirio() +{ + return "04879210963"; +} + +#if __cplusplus <= 199711L // Funzioni introdotte in C++11 + +int stoi(const char * value) +{ + TString app = value; + int retVal = 0; + for(int i = 0; i < app.len(); i++) + { + retVal += pow(double(app[i] - '0'), app.len() - i); // Convertito in double per evitare problemi di chiamata + } + return retVal; +} + +#endif \ No newline at end of file diff --git a/src/include/utility.h b/src/include/utility.h index 726b7fddb..de5d5186d 100755 --- a/src/include/utility.h +++ b/src/include/utility.h @@ -64,4 +64,12 @@ long daytime(); bool expand_sys_vars(TString& str); void quoted_string(TString& query, const char* val); +TString get_iva_sirio(); // Ritorna la partita IVA della Sirio + +#if __cplusplus <= 199711L // Funzioni introdotte in C++11 + +int stoi(const char * value); + +#endif + #endif /* __UTILITY_H */