Patch level : 12.0 1058

Files correlati     : tf0.exe tff.ini
Commento        :

Eliminato il controllo sui nuovi tipi documenti e nature

Interno :

La natura è già a 4 caratteri bisogna controllare se il database TF<ditta> viene aggiornato.
This commit is contained in:
Alessandro Bonazzi 2021-04-22 21:52:48 +02:00
parent b3cc2229a8
commit aecb22855a

View File

@ -816,12 +816,6 @@ bool TTrFa_app::send(TTrFa_mask* msk)
TSheet_field& sheet = msk->sfield(F_RIGHE);
// Booleano per appendere i record nel db
if(!check_new_codici_fp(sheet))
{
warning_box("Attenzione sono stati selezionati dei codici tipo documento\no natura iva non validi per questo periodo.");
return false;
}
/***********************************************************************************************
* Esporto
***********************************************************************************************/
@ -1593,20 +1587,6 @@ bool TTrFa_app::is_new_natura(const TString& natura)
return natura.full() && natura != "N1" && natura != "N2" && natura != "N3" && natura != "N4" && natura != "N5" && natura != "N6" && natura != "N7";
}
bool TTrFa_app::check_new_codici_fp(const TSheet_field& sheet)
{
const TDate start = fp_settings().get_date_start_new_fatt();
FOR_EACH_SHEET_ROW(sheet, nr, row)
{
const TString tipodoc = row->get(cid2index(A_TIPODOCAE));
const TDate datadoc = row->get(cid2index(A_DATADOC));
const TString natura = row->get(cid2index(A_NATURA));
if ((is_new_tipodoc(tipodoc) || is_new_natura(natura)) && datadoc < start)
return false;
}
return true;
}
bool TTrFa_app::destroy()
{
xvt_sql_close(_db); _db = NULL;