Patch level :4.0 602
Files correlati : Ricompilazione Demo : [ ] Commento :corretto numero dei decimali che vengono messi nelle righe del movimento di contabilita' generato dalla elaborazione differita! git-svn-id: svn://10.65.10.50/trunk@14837 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
2c2ed28f5a
commit
520a3a529d
@ -634,6 +634,7 @@ error_type TIVA_array::add(const TRiga_documento& r, const TBill& conto, const i
|
||||
real pind = ZERO;
|
||||
real impon;
|
||||
const bool sconto_lordo = t.tipo() != RIGA_SCONTI && _contsclor && _sco_perc_bill.ok();
|
||||
const int firmdec = TCurrency::get_firm_dec();
|
||||
|
||||
const TRectype * rdoc = r.find_original_rdoc();
|
||||
|
||||
@ -713,7 +714,7 @@ error_type TIVA_array::add(const TRiga_documento& r, const TBill& conto, const i
|
||||
}
|
||||
|
||||
impon *= p;
|
||||
impon.round(ndec);
|
||||
impon.round(firmdec); // was ndec
|
||||
|
||||
if (impon.is_zero())
|
||||
return no_error;
|
||||
@ -729,8 +730,8 @@ error_type TIVA_array::add(const TRiga_documento& r, const TBill& conto, const i
|
||||
real impres = (impon * pind) / CENTO;
|
||||
real ivares = (imposta * pind) / CENTO;
|
||||
|
||||
impres.round(ndec);
|
||||
ivares.round(ndec);
|
||||
impres.round(firmdec); // was ndec
|
||||
ivares.round(firmdec); // was ndec
|
||||
|
||||
// Le righe di sconto ad importo o percentuale vanno saltate
|
||||
// Casistica sulle righe omaggio:
|
||||
|
Loading…
x
Reference in New Issue
Block a user