21 lines
767 B
C
21 lines
767 B
C
|
#include <strings.h>
|
|||
|
#include <recset.h>
|
|||
|
|
|||
|
// Funzioni comode per pi<70> programmi
|
|||
|
|
|||
|
// 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<69>
|
|||
|
TString findDetraib(TString tipodet);
|
|||
|
// Ritorna "X" se ha il reverse charge
|
|||
|
TString revCharge(TString numreg);
|
|||
|
// Ritorna la ragione sociale del RFSO
|
|||
|
TString getRFSO(TString codrfso);
|