Patch level : 12.0 no-patch
Files correlati : fp Commento : Aggiunto controllo gruppo IVA su monitor passive
This commit is contained in:
parent
72f3acd9b7
commit
5e752b772e
@ -157,7 +157,6 @@ void TPassive_mask::elenco_prots_sel(TString& string) const
|
|||||||
string = "";
|
string = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void TPassive_mask::aggiungi_riga(TLocalisamfile& clifo, TSheet_field& sf, TSheet_field& sf_err)
|
void TPassive_mask::aggiungi_riga(TLocalisamfile& clifo, TSheet_field& sf, TSheet_field& sf_err)
|
||||||
{
|
{
|
||||||
int forn_code = -1;
|
int forn_code = -1;
|
||||||
@ -460,6 +459,15 @@ void TPassive_mask::aggiorna_forn()
|
|||||||
TToken_string& row_elenco_fatt = f_docs.row(n_row_elenco); // Prendo riga dall'elenco delle fatture
|
TToken_string& row_elenco_fatt = f_docs.row(n_row_elenco); // Prendo riga dall'elenco delle fatture
|
||||||
|
|
||||||
if (row->starts_with("X") && cod_forn == no_match_cf)
|
if (row->starts_with("X") && cod_forn == no_match_cf)
|
||||||
|
{
|
||||||
|
TLocalisamfile clifo(LF_CLIFO);
|
||||||
|
bool is_not_gruppo_iva = false;
|
||||||
|
clifo.setkey(5);
|
||||||
|
clifo.put(CLI_TIPOCF, 'F');
|
||||||
|
clifo.put(CLI_STATOPAIV, row->get(1));
|
||||||
|
clifo.put(CLI_PAIV, row->get(2));
|
||||||
|
is_not_gruppo_iva = (clifo.read() == NOERR && clifo.get(CLI_ALLEG) != 'G');
|
||||||
|
if(is_not_gruppo_iva)
|
||||||
{
|
{
|
||||||
TString num; num.format("%04d", nr);
|
TString num; num.format("%04d", nr);
|
||||||
TFilename newf_ini;
|
TFilename newf_ini;
|
||||||
@ -480,6 +488,7 @@ void TPassive_mask::aggiorna_forn()
|
|||||||
row->add("", 0);
|
row->add("", 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
sf.force_update();
|
sf.force_update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user