Patch level : 12.0 784
Files correlati : cg2.exe Commento : Corrtto storno prorata dagli acquisti
This commit is contained in:
parent
b8f3247b4e
commit
13c6f81a5d
@ -1157,8 +1157,8 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt, TAssoc_array &
|
||||
#ifdef DBG
|
||||
long nr = _mov->get_long(MOV_NUMREG);
|
||||
|
||||
if (nr == 17146)
|
||||
int i = 1;
|
||||
if (nr == 97882 || nr == 98707)
|
||||
int i = 1;
|
||||
#endif
|
||||
|
||||
const int liqmonth = _mov->get_int(MOV_MESELIQ);
|
||||
@ -1185,8 +1185,8 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt, TAssoc_array &
|
||||
continue;
|
||||
}
|
||||
#ifdef DBG
|
||||
if (nr == 35363)
|
||||
int i = 1;
|
||||
if (nr == 97882 || nr == 98707)
|
||||
int i = 1;
|
||||
#endif
|
||||
const TRectype& rcs = _cur->curr(LF_CAUSALI);
|
||||
const TDate datareg = _mov->get_date(MOV_DATAREG);
|
||||
@ -1240,8 +1240,8 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt, TAssoc_array &
|
||||
TPointer_array pagscatt; // Righe di pagsca interessate
|
||||
|
||||
#ifdef DBG
|
||||
if (nr == 25722 || nr == 27710)
|
||||
int i = 1;
|
||||
if (nr == 97882 || nr == 98707)
|
||||
int i = 1;
|
||||
#endif
|
||||
|
||||
if (fattrit)
|
||||
@ -1285,7 +1285,7 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt, TAssoc_array &
|
||||
bool regular_month = orizzonte >= date;
|
||||
bool first_month = regular_month && date > inizio + 1L;
|
||||
#ifdef DBG
|
||||
if (nr == 25722 || nr == 27710)
|
||||
if (nr == 97882 || nr == 98707)
|
||||
int i = 1;
|
||||
#endif
|
||||
flag_pg_nc = rp.calcola_pagato_periodo(first_month ? botime : inizio + 1L, orizzonte, pg_per, nc_per, &pagscatt) && regular_month;
|
||||
@ -1553,10 +1553,10 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt, TAssoc_array &
|
||||
const int tp = clifo.get_int(CLI_ALLEG);
|
||||
|
||||
#ifdef DBG
|
||||
long nr = _mov->get_long(MOV_NUMREG);
|
||||
long nr = _mov->get_long(MOV_NUMREG);
|
||||
|
||||
if (nr >= 35363 && nr <= 35368)
|
||||
int i = 1;
|
||||
if (nr == 97882 || nr == 98707)
|
||||
int i = 1;
|
||||
#endif
|
||||
|
||||
if ((soloiva &&
|
||||
@ -2850,11 +2850,11 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt, TAssoc_array &
|
||||
|
||||
// Somma i vari prorata calcolati per gli anni precedenti
|
||||
prorata += prorata_precedente1 + prorata_precedente2;
|
||||
prorata += prorata_diff;
|
||||
if (!lia.get_bool("B7"))
|
||||
prorata = ZERO;
|
||||
acquisti_iva -= prorata; // Rettifica acquisti_iva
|
||||
fdiffinc_iva_acq -= prorata_diff; // Rettifica acquisti_iva differiti incassati
|
||||
acquisti_iva -= prorata; // Rettifica acquisti_iva
|
||||
prorata += prorata_diff;
|
||||
if (!lia.get_bool("B7"))
|
||||
prorata = ZERO;
|
||||
fdiffinc_iva_acq -= prorata_diff; // Rettifica acquisti_iva differiti incassati
|
||||
}
|
||||
look_plm(month, codatt, true);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user