Patch level : 12.0 394

Files correlati     : cg4.exe

Corretto in funzionamento per fatture per cassa
Corretta stampa registri per l'ultima registrazione stampata 2 volte in certe condizioni

git-svn-id: svn://10.65.10.50/branches/R_10_00@23832 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
bonazzi 2017-05-20 20:14:09 +00:00
parent 8cb639765b
commit 25dbb8e2d4
2 changed files with 117 additions and 117 deletions

View File

@ -1639,8 +1639,12 @@ void TStampa_registri_app::set_page_tot_reg()
} }
} // for } // for
} }
if (printed) if (printed)
{
flush(); flush();
fine_mese();
}
if (_stampa_plafonds) if (_stampa_plafonds)
stampa_plafonds(rr); stampa_plafonds(rr);
} }
@ -2651,15 +2655,8 @@ bool TStampa_registri_app::preprocess_page(int file, int counter)
return true; return true;
} }
print_action TStampa_registri_app::postprocess_page (int file, int counter) void TStampa_registri_app::fine_mese()
{ {
if (file == LF_MOV)
{
if (counter) //dopo aver fatto un REPEAT_PAGE (cioe' dopo aver stampato
//le righe settate in set_page_tot_reg()), in pratica a rottura di mese o alla fine
{
reset_print();
const TRecnotype pos = _cur->pos(); const TRecnotype pos = _cur->pos();
const TRecnotype items = _cur->items(); const TRecnotype items = _cur->items();
const bool last_mov = pos == items-1; const bool last_mov = pos == items-1;
@ -2746,8 +2743,11 @@ print_action TStampa_registri_app::postprocess_page (int file, int counter)
} }
} }
} }
} }
else
print_action TStampa_registri_app::postprocess_page (int file, int counter)
{
if (file == LF_MOV)
{ {
const TRectype& mov = _cur->curr(LF_MOV); const TRectype& mov = _cur->curr(LF_MOV);
const TRecnotype pos = _cur->pos(); const TRecnotype pos = _cur->pos();
@ -2779,7 +2779,6 @@ print_action TStampa_registri_app::postprocess_page (int file, int counter)
} }
} }
} }
}
return NEXT_PAGE; return NEXT_PAGE;
} }

View File

@ -124,6 +124,7 @@ public:
void set_choice_limits(TMask&); void set_choice_limits(TMask&);
void build_ditte_sheet(int flags); void build_ditte_sheet(int flags);
tiporeg cerca_reg(const TString&); tiporeg cerca_reg(const TString&);
void fine_mese();
void set_page_tot_reg(); void set_page_tot_reg();
void send_message(char,const TFilename&,int); void send_message(char,const TFilename&,int);
void aggiorna_reg(const bool aggiorna_vidi); void aggiorna_reg(const bool aggiorna_vidi);