Patch level : 12.0 nopatch
Files correlati : cg4301.cpp , cg4302.cpp , cg2102.cpp Corretto bug sulla liquidazione IVA.
This commit is contained in:
parent
8e0ffce44b
commit
eb1e1a6ffb
@ -1589,7 +1589,7 @@ void TPrimanota_application::add2cg_row(TSheet_field& s, TToken_string & row, TS
|
|||||||
a.set_cgs_imp(posiva, i);
|
a.set_cgs_imp(posiva, i);
|
||||||
}
|
}
|
||||||
else
|
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
|
{ // ... crea nuova riga per l'IVA
|
||||||
TBill contoiva;
|
TBill contoiva;
|
||||||
int ri = 0;
|
int ri = 0;
|
||||||
|
@ -338,7 +338,7 @@ bool TLiquidazione_app::update_firm(int month, bool recalc)
|
|||||||
TString8 cattiv(codatt);
|
TString8 cattiv(codatt);
|
||||||
cattiv << tipoatt;
|
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)
|
if (!waspla)
|
||||||
break; // Non calcolare attività inesistenti 29-11-2012
|
break; // Non calcolare attività inesistenti 29-11-2012
|
||||||
|
|
||||||
|
@ -554,7 +554,8 @@ bool TLiquidazione_app::look_pla(const char* a, bool create)
|
|||||||
(*_pla_codatt) = buf;
|
(*_pla_codatt) = buf;
|
||||||
|
|
||||||
const TString16 s = _pla_r->get("CODTAB");
|
const TString16 s = _pla_r->get("CODTAB");
|
||||||
bool ok = _pla->read() == NOERR;
|
const int err = _pla->read();
|
||||||
|
bool ok = err == NOERR;
|
||||||
if (!ok && create)
|
if (!ok && create)
|
||||||
{
|
{
|
||||||
_pla->zero();
|
_pla->zero();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user