Patch level : 12.0 874

Files correlati     : cg4.exe cg1500a.uml
Commento            :
Stampa bilancio con provvisori
Liquidazione
This commit is contained in:
AlexBonazzi 2019-09-16 20:01:00 +02:00
parent 216d2b6d84
commit 75b60405f1

View File

@ -138,12 +138,7 @@ bool TLiquidazione_app::is_date_ok(const TDate& d, int month, int liqmonth, int
else // Nuova selezione dal 1998 in poi
{
if (month <= 12)
{
if (_is_liq_acconto)
return (regyear == year) && ((regmonth == month && liqmonth == 0) || (liqmonth == month)) && (d.day() <= _ver->giorno_acc());
else
return (regyear == year) && ((regmonth == month && liqmonth == 0) || (liqmonth == month));
}
else // Annuale, month == 13
return (regyear == year && liqmonth != 12) || (regyear == year + 1 && liqmonth == 12);
}