Patch level : 4.0 616

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

Corretta liquidazione per indetraibilità


git-svn-id: svn://10.65.10.50/trunk@14888 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2007-02-09 15:00:38 +00:00
parent c32a5ad866
commit 77e655d564

View File

@ -841,11 +841,26 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt)
const real imposta_orig = _rmoviva->get_real(RMI_IMPOSTA);
const int decimals = TCurrency::get_firm_dec();
real impon_ind = imponibile_orig * percind / CENTO; impon_ind.round(decimals);
real impon_det = imponibile_orig - impon_ind;
real impon_ind, impon_det, impos_ind, impos_det;
real impos_ind = impon_ind * perciva; impos_ind.round(decimals);
real impos_det = imposta_orig - impos_ind;
if (percind <= ZERO)
{
impon_det = imponibile_orig;
impos_det = imposta_orig;
}
else
if (percind >= CENTO)
{
impon_ind = imponibile_orig;
impos_ind = imposta_orig;
}
else
{
impon_ind = imponibile_orig * percind / CENTO; impon_ind.round(decimals);
impon_det = imponibile_orig - impon_ind;
impos_ind = impon_ind * perciva; impos_ind.round(decimals);
impos_det = imposta_orig - impos_ind;
}
for (int is_detraibile = 0; is_detraibile < 2; is_detraibile++)
{