Patch level : 12.0 720

Files correlati     : fp
Commento            : Corretta generazione pdf (Mancate consegna)
This commit is contained in:
Simone Palacino 2019-03-04 11:40:12 +01:00
parent a5b8fe7867
commit 16feaed14c

View File

@ -37,14 +37,9 @@ bool TFp_mail_sender::genera_pdf()
return false;
}
#ifdef DBG
TFilename pdf;
_pdf_path.cut(0) << "C:\\campo12\\temp\\admin";
#else
TFilename pdf;
_pdf_path.cut(0) << pdf.tempdir();
#endif
pdf << _pdf_path << _pdf_name;
pdf.cut(0) << _pdf_path << _pdf_name;
if (!pdf.exist()) {
error_box("Attenzione! Non è stato possibile generare il PDF");
return false;
@ -64,7 +59,7 @@ bool TFp_mail_sender::send()
if (_error == K_NO)
_error = -1;
if (_error == -1 || _error == K_SPACE)
return false;
return false; // Gestione decisione se inviare tutte quelle gia inviate o no (singola) o annullare (tutte)
}