Patch level : 12.00 1278

Files correlati     : cg2.exe
Commento            :

Correzione saldacontot per AGS
This commit is contained in:
Alessandro Bonazzi 2023-08-11 17:00:49 +02:00
parent 8fcf3df4b9
commit b3211f009b

View File

@ -1450,9 +1450,19 @@ bool TPartita::read(const TBill& clifo, int year, const char* num)
changed = true;
}
else
{
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);
TToken_string key;
@ -1463,13 +1473,16 @@ bool TPartita::read(const TBill& clifo, int year, const char* num)
if (cg.empty())
{
_part.destroy_row(r);
changed = true;
TMovimento_contabile m(nreg);
if (m.cg_rows() == 0)
{
_part.destroy_row(r);
changed = true;
}
}
}
}
}
if (_part.exist(UNASSIGNED))
_part.destroy_row(UNASSIGNED); // Elimina riga saldo;