Corretto aggiornamento saldi di chiusura
git-svn-id: svn://10.65.10.50/trunk@3084 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
1c95e7a580
commit
673e2fb152
@ -266,11 +266,14 @@ void TSaldo_agg::registra()
|
||||
saldi.put(SLD_FLAGSALINI, flag_salini);
|
||||
saldi.put(SLD_SALDO, si);
|
||||
}
|
||||
real sf = tcon.saldofin();
|
||||
char flag_salfin = sf < ZERO ? 'A' : 'D';
|
||||
if (flag_salfin == 'A') sf = -sf;
|
||||
saldi.put(SLD_FLAGSALFIN, flag_salfin);
|
||||
saldi.put(SLD_SALDOFIN, sf);
|
||||
|
||||
TImporto sf('D', tcon.saldofin());
|
||||
TImporto old_sf(saldi.get(SLD_FLAGSALFIN)[0], saldi.get_real(SLD_SALDOFIN));
|
||||
|
||||
sf += old_sf;
|
||||
sf.normalize();
|
||||
saldi.put(SLD_FLAGSALFIN, sf.sezione());
|
||||
saldi.put(SLD_SALDOFIN, sf.valore());
|
||||
|
||||
r = saldi.get_real(SLD_PDARE);
|
||||
r += tcon.dare();
|
||||
|
Loading…
x
Reference in New Issue
Block a user