Patch level : 12.0 1174

Files correlati     : cg5.exe

Commento:
Se ripristinavo il giornale e la data di ultima stampa non era fine mese i movimenti dopo quella non vevnivano ripristinati
This commit is contained in:
Alessandro Bonazzi 2022-06-26 02:38:33 +02:00
parent 7c2e310482
commit 78228faf85

View File

@ -44,11 +44,13 @@ bool TRipristina_stampa::reg_restore(const TString& regist,
const TDate inizio_anno(1, 1, year);
if (reg.read(_isequal, _lock) == NOERR)
{
const TDate dlast(reg.get_date("D3"));
TDate dlast(reg.get_date("D3"));
const int ld = TDate::last_day(month, year);
if (day > ld) day = ld;
TDate d(day, month, year); // Data di ripristino
dlast.set_end_month();
if (day > ld) day = ld;
TDate d(day, month, year); // Data di ripristino
TRectype from(mov.curr()); from.zero();
TRectype to(from);