Correzione MI2164... Speriamo che si decidano una buona volta.

Sta wallera di prorata non sanno nemmeno loro quando stamparlo.


git-svn-id: svn://10.65.10.50/trunk@3701 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
angelo 1996-10-02 16:24:00 +00:00
parent 7e5525bb1b
commit d214c14469
2 changed files with 7 additions and 4 deletions

View File

@ -1579,8 +1579,12 @@ void TLiquidazione_app::write_liq(int month, const char* codatts)
if (prorata != _prorata)
{
// calcolo conguaglio -- se positivo e' a debito
real topay = (iaq + ppg) * (prorata / CENTO);
topay.round(ROUND_MILLELIRE);
real topay;
if (prorata > 0.0)
{
topay = (iaq + ppg) * (prorata / CENTO);
topay.round(ROUND_MILLELIRE);
}
conguaglio = topay - ppg;
conguaglio.round(ROUND_MILLELIRE);
}

View File

@ -1750,8 +1750,7 @@ bool TLiquidazione_app::set_annual(_DescrItem& d)
set_print_zero(TRUE);
set_row(row++,"");
//set_row(row++,"CALCOLO DELLA PERCENTUALE DI INDETRAIBILITA'");
if (d._r2 > 0.0)
set_row(row++, "%% PRO-RATA ed IVA non detraibile (%s%%)@69g%r",
set_row(row++, "%% PRO-RATA ed IVA non detraibile (%s%%)@69g%r",
(const char*)(d._r2.string()), &(d._r6));
//set_row(row++,"");
set_row(row++,"Operazioni esenti riga B1@30g%r", &(d._r1));