campo-sirio/src/tf/tfutility.h
francescofucarino 5d48585700 Patch level : 12.0 1010
Files correlati     : fp0.exe
Commento            :

Troncati a due(2 char) i codici natura IVA nell'invio Fatture
Modifiche all'invio dei tipi di documento SDI per gestire i nuovi tracciati SDI (TD24,TD25,TD27 -->TD01; se la data di invio è antecedente alla data di inizio nuovo tracciato fatturazione elettronica)

Interno :
2020-11-17 18:04:56 +01:00

31 lines
1.2 KiB
C

#ifndef __TFUTILITY_H
#define __TFUTILITY_H
#include <strings.h>
#include <recset.h>
// 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