Patch level : 12.0 778
Files correlati : fp1200 Commento : - Corretto invio mail mancata consegna quando pdf già esistente
This commit is contained in:
parent
d1e8c48fc1
commit
dc7dbbdbfc
@ -395,7 +395,11 @@ void TMancati_app::main_loop()
|
|||||||
const TFixed_string codnum(riga->get(mask.sfield(F_DOCS).cid2index(S_CODNUM)));
|
const TFixed_string codnum(riga->get(mask.sfield(F_DOCS).cid2index(S_CODNUM)));
|
||||||
const TFixed_string tipodoc(riga->get(mask.sfield(F_DOCS).cid2index(S_TIPODOC)));
|
const TFixed_string tipodoc(riga->get(mask.sfield(F_DOCS).cid2index(S_TIPODOC)));
|
||||||
const long codcf = riga->get_long(mask.sfield(F_DOCS).cid2index(S_CLIENTE));
|
const long codcf = riga->get_long(mask.sfield(F_DOCS).cid2index(S_CLIENTE));
|
||||||
|
#ifdef DBG
|
||||||
|
const TString mail = "spalacino@sirio-is.it";
|
||||||
|
#else
|
||||||
const TString mail = riga->get(mask.sfield(F_DOCS).cid2index(S_DOCMAIL));
|
const TString mail = riga->get(mask.sfield(F_DOCS).cid2index(S_DOCMAIL));
|
||||||
|
#endif
|
||||||
bool accord = TString(riga->get(mask.sfield(F_DOCS).cid2index(S_BYMAIL))) == "X";
|
bool accord = TString(riga->get(mask.sfield(F_DOCS).cid2index(S_BYMAIL))) == "X";
|
||||||
TString ragsoc = riga->get(mask.sfield(F_DOCS).cid2index(S_RAGSOC));
|
TString ragsoc = riga->get(mask.sfield(F_DOCS).cid2index(S_RAGSOC));
|
||||||
bool sent = TString(riga->get(mask.sfield(F_DOCS).cid2index(S_SENT))) == "X";
|
bool sent = TString(riga->get(mask.sfield(F_DOCS).cid2index(S_SENT))) == "X";
|
||||||
|
@ -69,7 +69,7 @@ bool TFp_mail_sender::send(const TString& msg)
|
|||||||
|
|
||||||
const int pdf_exist = pdf.exist();
|
const int pdf_exist = pdf.exist();
|
||||||
if (pdf_exist)
|
if (pdf_exist)
|
||||||
ok = spotlite_send_mail(pdf); // -> Invio mail con PDF già esistente
|
ok = spotlite_send_mail(pdf, msg); // -> Invio mail con PDF già esistente
|
||||||
else if (genera_pdf()) // Genero pdf se non esiste già (in tempdir)
|
else if (genera_pdf()) // Genero pdf se non esiste già (in tempdir)
|
||||||
{ // Manda già un messaggio di errore generazione se fallisce la generazione
|
{ // Manda già un messaggio di errore generazione se fallisce la generazione
|
||||||
TFilename newf_pdf; newf_pdf << _pdf_path << _pdf_name;
|
TFilename newf_pdf; newf_pdf << _pdf_path << _pdf_name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user