Patch level : 12.0 nopatch

Files correlati     : cg4301.cpp , cg4302.cpp , cg2102.cpp
Corretto bug sulla liquidazione IVA.
This commit is contained in:
smen 2022-02-22 17:32:50 +01:00
parent 8e0ffce44b
commit eb1e1a6ffb
3 changed files with 4 additions and 3 deletions

View File

@ -1589,7 +1589,7 @@ void TPrimanota_application::add2cg_row(TSheet_field& s, TToken_string & row, TS
a.set_cgs_imp(posiva, i);
}
else
if (add & !iva.is_zero()) // Se c'e' imposta ...
if (add && !iva.is_zero()) // Se c'e' imposta ...
{ // ... crea nuova riga per l'IVA
TBill contoiva;
int ri = 0;

View File

@ -338,7 +338,7 @@ bool TLiquidazione_app::update_firm(int month, bool recalc)
TString8 cattiv(codatt);
cattiv << tipoatt;
const bool waspla = look_pla(cattiv, has_single_activity);
const bool waspla = look_pla(cattiv); // perchè sta cosa ) , has_single_activity);
if (!waspla)
break; // Non calcolare attività inesistenti 29-11-2012

View File

@ -554,7 +554,8 @@ bool TLiquidazione_app::look_pla(const char* a, bool create)
(*_pla_codatt) = buf;
const TString16 s = _pla_r->get("CODTAB");
bool ok = _pla->read() == NOERR;
const int err = _pla->read();
bool ok = err == NOERR;
if (!ok && create)
{
_pla->zero();