#include #include // Funzioni/Costanti comode per più programmi #define MOV_CUSTOM 10000000 // Ritorna il record custom TRectype getTrasFatt(TString reg, TString codiva); // Ritorna il cliente in un record di $clifo, con tipocf = "O" lo cerca in $occas TRectype getCli(const TString& tipocf, const TString& codcf, const TString& ocfpi); // Controlla se l'azienda ha un RFSO bool haveRFSO(TString& codrfso); // Ritorna la natura da un codice IVA const char * natura(const TString& codiva); // Ritorna l'IVA real get_IVA(const TString& codiva); // Ritorna la % di detraibilità TString findDetraib(TString tipodet); // Ritorna "X" se ha il reverse charge TString revCharge(TString numreg, int year); // Ritorna la ragione sociale del RFSO TString getRFSO(TString codrfso); // Controllo che sia un record che mi interessa bool checkRecord(TISAM_recordset* rec);