Patch level : 12.0 384
Files correlati : cg4.exe Corretto in funzionamento per fatture per cassa pagate in anticipo e calcolo pro-rata per le fatture per cassa. git-svn-id: svn://10.65.10.50/branches/R_10_00@23786 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
63d785a4ed
commit
72a7e8995d
@ -1459,7 +1459,7 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt, TAssoc_array &
|
||||
#ifdef DBG
|
||||
const long nr = _mov->get_long(MOV_NUMREG);
|
||||
|
||||
if (nr == 30559 || nr == 29171 )
|
||||
if (nr == 30559)
|
||||
int i = 1 ;
|
||||
#endif
|
||||
|
||||
@ -1487,6 +1487,8 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt, TAssoc_array &
|
||||
{
|
||||
const TDate datareg = _mov->get(MOV_DATAREG);
|
||||
|
||||
if (is_detr_diff == 1 && datareg.month() != month)
|
||||
continue;
|
||||
datafat = datareg;
|
||||
sezfat = tipomov == vendita ? 'D' : 'A';
|
||||
id.put(RMI_NUMREG, _rmoviva->get(RMI_NUMREG));
|
||||
@ -1875,6 +1877,8 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt, TAssoc_array &
|
||||
real imponibile = is_detraibile == 0 ? impon_det : impon_ind;
|
||||
real imposta = is_detraibile == 0? impos_det : impos_ind;
|
||||
|
||||
if (bRowIsMovDiff && is_detraibile == 1 && month != _mov->get_date(MOV_DATAREG).month())
|
||||
continue;
|
||||
if (bRowIsMovDiff && is_detraibile == 0)
|
||||
{
|
||||
imponibile = ZERO;
|
||||
|
Loading…
x
Reference in New Issue
Block a user