Patch level : 12.0 332
Files correlati : cg4.exe Il flag di definitiva se è vero viene impostato in tutti i mesi precedenti altrimenti in tutti i mesi successivi git-svn-id: svn://10.65.10.50/branches/R_10_00@23521 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
8ed1eb7c1d
commit
98f08fd845
@ -89,25 +89,45 @@ bool TLiquidazione_app::recalc_all()
|
|||||||
|
|
||||||
if (!_lim_cleared)
|
if (!_lim_cleared)
|
||||||
{
|
{
|
||||||
TCursor c(new TRelation("LIM"));
|
TCursor c(new TRelation("LIM"));
|
||||||
const int items = c.items();
|
const int items = c.items();
|
||||||
|
|
||||||
for (c = 0L; c.pos() < items; ++c)
|
for (c = 0L; c.pos() < items; ++c)
|
||||||
{
|
{
|
||||||
TRectype & rec = c.curr();
|
TRectype & rec = c.curr();
|
||||||
|
|
||||||
rec.zero("B0");
|
rec.zero("B0");
|
||||||
rec.zero("B1");
|
rec.zero("B1");
|
||||||
rec.rewrite(c.file());
|
rec.rewrite(c.file());
|
||||||
}
|
}
|
||||||
ini_set_bool(CONFIG_DITTA, "CG", "LimCleared", true);
|
ini_set_bool(CONFIG_DITTA, "CG", "LimCleared", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
TRectype & lim = (TRectype &) get_lim(_month);
|
int from;
|
||||||
|
int to;
|
||||||
|
|
||||||
|
if (_definitiva)
|
||||||
|
{
|
||||||
|
from = 1;
|
||||||
|
to = _month;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
from = _month;
|
||||||
|
to = 13;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int m = from; m <= to; m++)
|
||||||
|
{
|
||||||
|
TRectype & lim = (TRectype &) get_lim(m, true);
|
||||||
|
|
||||||
|
if (_definitiva || m == _month)
|
||||||
|
lim.zero("B0");
|
||||||
|
|
||||||
|
lim.put("B1", _definitiva);
|
||||||
|
put_lim(lim);
|
||||||
|
}
|
||||||
|
|
||||||
lim.zero("B0");
|
|
||||||
lim.put("B1", _definitiva);
|
|
||||||
put_lim(lim);
|
|
||||||
|
|
||||||
// Imposta metodo arrotondamento imposte
|
// Imposta metodo arrotondamento imposte
|
||||||
TIva_round ir;
|
TIva_round ir;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user