Patch level : 2.0 678

Files correlati     : cg2.exe cg4.exe
Ricompilazione Demo : [ ]
Commento            :

GF20121
Le righe di un movimento contabile puro vengono rimescolate all'atto del
salvataggio.  Nessuna viene persa, ma vengono salvate in ordine diverso
rispetto a quello di inserimento.

GF20122
Problema riscontrato nella stampa del registro IVA VENDITE di PROVA del
mese di DICEMBRE, nel prospetto dell'acconto, se l'iva dovuta è a credito
viene stampata nella colonna a debito.


git-svn-id: svn://10.65.10.50/trunk@11729 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2004-01-28 12:05:33 +00:00
parent 7938a0f7cc
commit fd1125a3a7
2 changed files with 12 additions and 7 deletions

View File

@ -526,18 +526,23 @@ HIDDEN bool can_remove(TToken_string& s)
void TPrimanota_application::cgs_pack()
{
TSheet_field& s = cgs();
TString_array& rows = s.rows_array();
const bool pagamento = is_pagamento();
const long numreg = curr_mask().get_long(F_NUMREG);
bool rowtypes_present = false;
TSheet_field& s = cgs();
TString_array& rows = s.rows_array();
for (int i = rows.items()-1; i >= 0; i--)
{
TToken_string& r = rows.row(i);
const char rt = row_type(r);
rowtypes_present |= (rt > ' ');
if (can_remove(r))
{
bool ok = TRUE;
if (pagamento && row_type(r) == 'K')
if (pagamento && rt == 'K')
{
ok = !partite().utilizzata(numreg, i+1);
if (ok)
@ -547,7 +552,7 @@ void TPrimanota_application::cgs_pack()
rows.destroy(i, TRUE);
}
}
if (!pagamento) // Il pagamento e' gia' ordinato
if (!pagamento && rowtypes_present) // Il pagamento e' gia' ordinato
rows.TArray::sort(compare_rows); // Pack and sort array
}

View File

@ -1495,12 +1495,12 @@ void TLiquidazione_app::set_liqacc_2000(_DescrItem& d)
set_row(i,FR("@11gIVA Dovuta o a Credito"));
const real risultato = iva_dov_cre - d._r9;
if (risultato >= 0)
set_row(i++,"@64g%r", &risultato);
if (risultato >= ZERO)
set_row(i++,"@81g%r", &risultato);
else
{
const real tmp = -risultato;
set_row(i++,"@81g%r", &tmp);
set_row(i++,"@64g%r", &tmp);
}
// Acconto