Patch level : 12.0 544

Files correlati     : m770
Commento            : Approssimazione a +-0.02 decimali delle somme non soggette a ritenuta

git-svn-id: svn://10.65.10.50/branches/R_10_00@24402 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
mtollari 2018-02-27 08:04:08 +00:00
parent f97126059f
commit d2ce1ee34c
2 changed files with 11 additions and 2 deletions

View File

@ -91,7 +91,7 @@ void TRighe_riepilogo::genera_aliquota(TRectype& quadro, const char* aliquota,
void TRighe_riepilogo::genera_la(TRectype& quadro, const TRectype& riga, const TString& codcaus) const
{
#ifdef DBG
if (riga.get_long(SPR_CODANAGR) == 3072)
if (riga.get_long(SPR_CODANAGR) == 571)
int minimo = 1;
#endif
@ -112,7 +112,12 @@ void TRighe_riepilogo::genera_la(TRectype& quadro, const TRectype& riga, const T
// 26/01/17: Spostato qua questo blocco per aggiungere somme e tenere un filo logico di tutto insieme
real ammlordo = imponibile;
ammlordo += riga.get_real(PAG_SOMNSRIT);
real snsar = riga.get_real(PAG_SOMNSRIT);
if (snsar > -0.02 && snsar < 0.02)
{
snsar = ZERO;
}
ammlordo += snsar;
ammlordo += riga.get_real(PAG_CONTROBB);
ammlordo += riga.get_real(PAG_SOMREGCONV);
//ammlordo += somme;

View File

@ -796,6 +796,10 @@ bool TTrasferimentoCU::append_record_h(const TRectype& qla, int modulo, TLog_rep
long codice = atol(cache().get("%CA7", codcaus, "I1")); // 1, 2, 5, 6, 7
real altre_somme = qla.get_real("SOMME");
if (altre_somme > -0.02 && altre_somme < 0.02)
{
altre_somme = ZERO;
}
if (altre_somme.is_zero() && codice == 7)
{
altre_somme = imponibile;