Patch level : 12.00 1278
Files correlati : cg2.exe Commento : Correzione saldacontot per AGS
This commit is contained in:
parent
8fcf3df4b9
commit
b3211f009b
@ -1450,9 +1450,19 @@ bool TPartita::read(const TBill& clifo, int year, const char* num)
|
|||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
regs.set(nreg);
|
regs.set(nreg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!changed)
|
||||||
|
for (int r = last(); r >= firstrow; r = pred(r))
|
||||||
|
{
|
||||||
|
TRiga_partite & row = riga(r);
|
||||||
|
long nreg = row.get_long(PART_NREG);
|
||||||
|
int rate = row.rate();
|
||||||
|
tipo_movimento t = row.tipo();
|
||||||
|
|
||||||
|
if (t == tm_pagamento)
|
||||||
|
{
|
||||||
const long nriga = row.get_long(PART_NRIGA);
|
const long nriga = row.get_long(PART_NRIGA);
|
||||||
TToken_string key;
|
TToken_string key;
|
||||||
|
|
||||||
@ -1463,13 +1473,16 @@ bool TPartita::read(const TBill& clifo, int year, const char* num)
|
|||||||
|
|
||||||
if (cg.empty())
|
if (cg.empty())
|
||||||
{
|
{
|
||||||
_part.destroy_row(r);
|
TMovimento_contabile m(nreg);
|
||||||
changed = true;
|
|
||||||
|
if (m.cg_rows() == 0)
|
||||||
|
{
|
||||||
|
_part.destroy_row(r);
|
||||||
|
changed = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (_part.exist(UNASSIGNED))
|
if (_part.exist(UNASSIGNED))
|
||||||
_part.destroy_row(UNASSIGNED); // Elimina riga saldo;
|
_part.destroy_row(UNASSIGNED); // Elimina riga saldo;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user