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:
parent
7c2e310482
commit
78228faf85
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user