Patch level : 10.0 patch 623

Files correlati     : lv3
Ricompilazione Demo : [ ]
Commento            :
QUANDO IL BUONO DI PRELIEVO NON E' COMPLETAMENTE EVASO MA DAL MAGAZZINO DEVE ESSERE COMUNQUE CHIUSO CON EVADI NON GLI FA' ALCUNA DOMANDA ( SE VUOLE CUMUNQUE CHIUDERE IL BUONO ANCHE SE NON TUTTO EVASO) E NON STAMPA COMUNQUE IL BUONO LO DOBBIAMO STAMPARE NOI DALL'UFFICIO

SE IL BUONO E' COMPLETAMENTE EVASO STAMPA DIRETTAMENTE E NON LI PONE LA DOMANDA STAMPA


git-svn-id: svn://10.65.10.50/trunk@20058 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca83 2010-02-05 13:53:02 +00:00
parent 325ed9f23b
commit e4b5550ce0

View File

@ -598,7 +598,7 @@ void TEvasione_ter_msk::genera_buono()
} }
} }
if (err == NOERR) if (err == NOERR && yesno_box(TR("Il buono di consegna è stato generato correttamente; si desidera stamaprlo?")))
{ {
//stampa automatica //stampa automatica
TFilename tmp; TFilename tmp;
@ -609,7 +609,7 @@ void TEvasione_ter_msk::genera_buono()
{ {
ofstream outf(tmp); ofstream outf(tmp);
outf << "[Transaction]" << endl; // Transaction header outf << "[Transaction]" << endl; // Transaction header
outf << "Action=S" << endl; // 'S'tampa o 'A'nteprima outf << "Action=A" << endl; // 'S'tampa o 'A'nteprima
outf << "Mode=D" << endl; // Definitive (always?) outf << "Mode=D" << endl; // Definitive (always?)
outf << "NoPrintDlg=X" << endl; // Dont' prompt the user with the print dialog outf << "NoPrintDlg=X" << endl; // Dont' prompt the user with the print dialog
outf << endl; outf << endl;
@ -1050,9 +1050,11 @@ bool TEvasione_ter_msk::on_field_event(TOperable_field& f, TField_event e, long
case DLG_SELECT: case DLG_SELECT:
if (e == fe_button) if (e == fe_button)
{ {
evadi(); if(yesno_box(TR("ATTENZIONE: non tutte le righe sono evase. Si desidera continuare ugualmente?")))
if (controlla()) {
evadi();
genera_buono(); genera_buono();
}
return false; return false;
} }
break; break;