Patch level : 12.0 1066
Files correlati : cg2.exe cg4.exe Commento : Le note di credito per cassa non legate a fattura non venivano liquidate dopo un anno. Corretto errore entrando nel saldaconto Interno : Diana Le note di credito 40177 40178 40179 sono state sganciate per liquidarle ma non venivano liquidate ugualmente dopo un anno. La registrazione 40178 dava un errore entrando nel saldaconto (cg2)
This commit is contained in:
parent
426aa60c8b
commit
3125297772
@ -380,7 +380,7 @@ public:
|
|||||||
bool get_isf1() const { return _isf1; }
|
bool get_isf1() const { return _isf1; }
|
||||||
int get_lastdate() { return _last_date; }
|
int get_lastdate() { return _last_date; }
|
||||||
|
|
||||||
TMask * mask(CGMaskType type) { return _msk[type]; }
|
TMask * mask(CGMaskType type);
|
||||||
|
|
||||||
void type2colors(char tipor, COLOR& back, COLOR& fore);
|
void type2colors(char tipor, COLOR& back, COLOR& fore);
|
||||||
void set_type_colors(char tipor, COLOR back, COLOR fore);
|
void set_type_colors(char tipor, COLOR back, COLOR fore);
|
||||||
|
@ -223,6 +223,12 @@ void TPrimanota_application::set_type_color(char tipor, char tipoc, COLOR col)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TMask * TPrimanota_application::mask(CGMaskType type)
|
||||||
|
{
|
||||||
|
if (_msk[type] == nullptr)
|
||||||
|
load_mask(type);
|
||||||
|
return _msk[type];
|
||||||
|
}
|
||||||
void TPrimanota_application::type2colors(char tipor, COLOR& back, COLOR& fore)
|
void TPrimanota_application::type2colors(char tipor, COLOR& back, COLOR& fore)
|
||||||
{
|
{
|
||||||
back = type2color(tipor, 'B');
|
back = type2color(tipor, 'B');
|
||||||
|
@ -1276,7 +1276,7 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt, TAssoc_array &
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (iva_diff || ((abs(residuo.valore()) > UN_CENTESIMO) && sarebbe_maturata(_mov->curr(), inizio + 1L, fine, tm)) || (iva_cass && _end_cassa))
|
if (iva_diff || (IMPORTO_NON_ZERO(residuo) && sarebbe_maturata(_mov->curr(), inizio + 1L, fine, tm)) || (iva_cass && _end_cassa))
|
||||||
{
|
{
|
||||||
TPointer_array pagscaold;
|
TPointer_array pagscaold;
|
||||||
TImporto pg_tot, nc_tot;
|
TImporto pg_tot, nc_tot;
|
||||||
@ -1353,7 +1353,7 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt, TAssoc_array &
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Fattura più vecchia di un anno a ente NON pubblico
|
// Fattura più vecchia di un anno a ente NON pubblico
|
||||||
if ((abs(residuo.valore()) > UN_CENTESIMO || !has_sc) && sarebbe_maturata(_mov->curr(), inizio + 1L, fine, tm) || (iva_cass && _end_cassa))
|
if ((IMPORTO_NON_ZERO(residuo) || !has_sc) && sarebbe_maturata(_mov->curr(), inizio + 1L, fine, tm) || (iva_cass && _end_cassa))
|
||||||
tot_da_incassare = _mov->get_real(MOV_TOTDOC);
|
tot_da_incassare = _mov->get_real(MOV_TOTDOC);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1373,7 +1373,7 @@ void TLiquidazione_app::recalc_att(int month, const char* codatt, TAssoc_array &
|
|||||||
if (datainc < date)
|
if (datainc < date)
|
||||||
datainc = date;
|
datainc = date;
|
||||||
}
|
}
|
||||||
if ((tot_incassato > ZERO || (tm == tm_nota_credito && tot_incassato < ZERO)) && (!has_sc || abs(residuo.valore()) > UN_CENTESIMO) && is_date_ok(datainc, month, liqmonth, year_int))
|
if ((tot_incassato > ZERO || (tm == tm_nota_credito && tot_incassato < ZERO)) && (!has_sc || IMPORTO_NON_ZERO(residuo)) && is_date_ok(datainc, month, liqmonth, year_int))
|
||||||
{
|
{
|
||||||
flag_pg_nc = 0x1;
|
flag_pg_nc = 0x1;
|
||||||
TRectype* pagsca = new TRectype(LF_PAGSCA);
|
TRectype* pagsca = new TRectype(LF_PAGSCA);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user