Patch level : 12.0 828
Files correlati : fp0.exe Commento : [contab. F1] Controlla di non inserire righe IVA vuote
This commit is contained in:
parent
82cc21e3d6
commit
e3d8fbfc28
@ -576,14 +576,19 @@ int TPassive_mask::prepara_contab() const
|
||||
query.cut(0) << "SELECT PL_IMPONIBILE AS IMPONIBILE, PL_IMPOSTA AS IMPOSTA \nFROM PAA2200F \n" << where_q;
|
||||
fp_db().sq_set_exec(query, false);
|
||||
int i = 1;
|
||||
for (bool ok = fp_db().sq_next(); ok; ok = fp_db().sq_next(), i++)
|
||||
for (bool ok = fp_db().sq_next(); ok; ok = fp_db().sq_next())
|
||||
{
|
||||
contab_ini.set_paragraph(LF_RMOVIVA, i);
|
||||
contab_ini.set("IMPONIBILE", fp_db().sq_get("IMPONIBILE"));
|
||||
contab_ini.set("IMPOSTA", fp_db().sq_get("IMPOSTA"));
|
||||
contab_ini.set("NRIGA", i);
|
||||
TString imponibile = fp_db().sq_get("IMPONIBILE");
|
||||
TString imposta = fp_db().sq_get("IMPOSTA");
|
||||
if(imponibile.full() || imposta.full())
|
||||
{
|
||||
contab_ini.set_paragraph(LF_RMOVIVA, i);
|
||||
contab_ini.set("IMPONIBILE", imponibile);
|
||||
contab_ini.set("IMPOSTA", imposta);
|
||||
contab_ini.set("NRIGA", i);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
row->add("", 0);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user