Patch level : 12.0 384

Files correlati     : tf
Commento            : 
- Sistemate le librerie per il nuovo modulo TF
- Aggiunta funzione get_iva_sirio() per ricevere l'iva del produttore del software
- Aggiunta funzione stoi() con controllo della versione del compilatore, è stata aggiunta nello standard C++11. è ancora grezza, da ricontrollare per aggiungere eventuali controlli.

git-svn-id: svn://10.65.10.50/branches/R_10_00@23762 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
mtollari 2017-04-28 15:19:48 +00:00
parent 2266dab4a0
commit 2e06fbd35f
5 changed files with 33 additions and 1 deletions

View File

@ -48,3 +48,4 @@ ha Hardy Caff
ri Riclassificazioni
vd Vendita al dettaglio
gv Gestione versamenti F24
tf Trasferimento fatture

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 */