Patch level : 12.0 1036

Files correlati     : fp0.exe fp0100a.msk fp0300a.msk
Commento :
Aggiunto un parametro per inviare i dati di tutti i documenti di riferimento e non solo delle note di credito
This commit is contained in:
Alessandro Bonazzi 2021-02-28 22:02:56 +01:00
parent 3b54d64097
commit de6b6e9fd1

View File

@ -26,9 +26,9 @@ bool set_connection(SSimple_query& s)
{
bool ok = true;
if (s.sq_connect(
fp_settings().get_db_str_con(),
fp_settings().get_db_user(),
fp_settings().get_db_password(),
get_db_str_con(),
get_db_user(),
get_db_password(),
TSDB_MSSQL) != NOERR)
{
warning_box("Impossibile connettersi al DB esterno");
@ -180,12 +180,14 @@ bool chiave_paf(const TRectype& doc, TString& hfatt, TString& bfatt)
chiave_paf(d, hfatt, bfatt);
return hfatt.full();
}
TString get_dest_sdi(const char tipocf, const long codcf, const TString& cod_ind_sped)
{
TString codsdi, pec;
get_coddest(tipocf, codcf, codsdi, pec, cod_ind_sped);
return pec.full() ? pec : codsdi;
}
bool get_coddest(const char tipocf, const long codcf, TString& coddest, TString& pec, const TString& cod_ind_sped)
{
coddest.cut(0);