Patch level : 10.0
Files correlati : ve1 Ricompilazione Demo : [ ] Commento : Aggiunto metodo auto_archive al TCodice_numerazione git-svn-id: svn://10.65.10.50/trunk@17406 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
d03e1cd76c
commit
856f3744bf
@ -974,7 +974,7 @@ bool TReport_doc_app::print_loop(const TString& query, bool send_by_mail)
|
||||
TReports_cache reports; // Cache degli ultimi reports usati
|
||||
TDoc_book book; // Destinazione dell'intera stampa
|
||||
TDoc_book * mail_book = NULL; // Destinazione dell'intera stampa
|
||||
TLog_report log("Invio documenti per email");
|
||||
TLog_report log(TR("Invio documenti per email"));
|
||||
TProgind pi(docs, TR("Elaborazione documenti..."), true, true);
|
||||
|
||||
for (int i = 0; i < docs; i++)
|
||||
@ -988,7 +988,8 @@ bool TReport_doc_app::print_loop(const TString& query, bool send_by_mail)
|
||||
if (is_definitive)
|
||||
{
|
||||
const TString& codnum = doc.get(DOC_CODNUM).as_string();
|
||||
arc = cache().get("%NUM", codnum, "B6").full();
|
||||
const TCodice_numerazione& cn = cached_numerazione(codnum);
|
||||
arc = cn.auto_archive();
|
||||
}
|
||||
set_next_pdf(doc.get(DOC_ANNO).as_int(), doc.get(DOC_CODNUM).as_string(),
|
||||
doc.get(DOC_NDOC).as_int(), doc.get(DOC_TIPOCF).as_string()[0],
|
||||
@ -1017,7 +1018,7 @@ bool TReport_doc_app::print_loop(const TString& query, bool send_by_mail)
|
||||
if (!report.print(doc, *mail_book, is_definitive, 1, true, arc))
|
||||
break;
|
||||
TString mesg;
|
||||
mesg << tipo.descrizione() << " n. " << doc.get(DOC_NDOC).as_int()
|
||||
mesg << tipo.descrizione() << TR(" n. ") << doc.get(DOC_NDOC).as_int()
|
||||
<< TR(" a ") << get_mail_address();
|
||||
log.log(0, mesg);
|
||||
}
|
||||
|
@ -351,6 +351,7 @@ public:
|
||||
const bool fattura_emettere_ricevere() const { return get_bool("B3"); }
|
||||
const bool save_and_new() const { return get_bool("B4"); }
|
||||
const bool test_eser() const { return !get_bool("B5"); }
|
||||
const bool auto_archive() const { return get_bool("B6"); }
|
||||
const bool newnumdef() const { return get_bool("B8"); }
|
||||
const TString& codnumdef() const { return get("S8"); }
|
||||
const TString& tipodocdef() const { return get("S9"); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user