#ifndef __TFUTILITY_H #define __TFUTILITY_H #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 have_rfso(TString& codrfso); // Ritorna la natura da un codice IVA // Ritorna l'IVA real get_iva(const TString& codiva); // Ritorna la % di detraibilità TString find_detraib(const TString& tipodet); // Ritorna "X" se ha il reverse charge TString rev_charge(const TString& numreg, int year); // Ritorna la ragione sociale del RFSO TString get_rfso(TString codrfso); // Controllo che sia un record che mi interessa bool check_record(TISAM_recordset* rec, const bool mod_esterometro = false, const bool paf_not_sent = false, const bool paf_sent = false, const bool paf_sog_fat = false, const bool paf_esteri = false, const bool paa_not_sent = false, const bool paa_sent = false, const bool paa_sog_fat = false, const bool paa_esteri = false); #endif //!__TFUTILITY_H