Patch level : 01.00 1374
Files correlati : sc2.exe Commento: estratti conto per email
This commit is contained in:
parent
76ff953bae
commit
c6dc02d3e2
@ -594,6 +594,11 @@ int TEC_mask::print_one(const char * tipo, const long codice)
|
|||||||
TRelation rel(LF_PARTITE);
|
TRelation rel(LF_PARTITE);
|
||||||
TRectype filter(rel.curr());
|
TRectype filter(rel.curr());
|
||||||
|
|
||||||
|
|
||||||
|
fcrec.zero();
|
||||||
|
fcrec.put(CLI_TIPOCF, who());
|
||||||
|
fcrec.put(CLI_CODCF, codice);
|
||||||
|
_form->cursor()->read();
|
||||||
if (fcrec.num() == LF_CLIFO)
|
if (fcrec.num() == LF_CLIFO)
|
||||||
{
|
{
|
||||||
filter.put(PART_TIPOCF, tipo);
|
filter.put(PART_TIPOCF, tipo);
|
||||||
@ -639,20 +644,23 @@ int TEC_mask::print_one(const char * tipo, const long codice)
|
|||||||
const TDate& dls = _form->data_limite_scaduto();
|
const TDate& dls = _form->data_limite_scaduto();
|
||||||
const TImporto saldo = game.calcola_saldo_al(_form->in_valuta(), dlo, dls, dir);
|
const TImporto saldo = game.calcola_saldo_al(_form->in_valuta(), dlo, dls, dir);
|
||||||
|
|
||||||
if (saldo.is_zero() && stampa_chiuse)
|
if (saldo.is_zero())
|
||||||
{
|
{
|
||||||
int r = 0;
|
int r = 0;
|
||||||
|
|
||||||
for (r = game.last(); r > 0; r = game.pred(r))
|
if (stampa_chiuse)
|
||||||
{
|
{
|
||||||
const TRiga_partite& riga = game.riga(r);
|
for (r = game.last(); r > 0; r = game.pred(r))
|
||||||
|
|
||||||
if (riga.is_fattura())
|
|
||||||
{
|
{
|
||||||
const TDate dd = riga.get(PART_DATADOC);
|
const TRiga_partite& riga = game.riga(r);
|
||||||
|
|
||||||
if (dd >= data_chiuse)
|
if (riga.is_fattura())
|
||||||
break;
|
{
|
||||||
|
const TDate dd = riga.get(PART_DATADOC);
|
||||||
|
|
||||||
|
if (dd >= data_chiuse)
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (r == 0)
|
if (r == 0)
|
||||||
|
@ -1682,7 +1682,7 @@ int TSelection_mask::send_doc(long codice, const TString & ragsoc, const TToken_
|
|||||||
message << TR("Invio estratto conto al ") << data << TR(" nel file allegato ") << '\n';
|
message << TR("Invio estratto conto al ") << data << TR(" nel file allegato ") << '\n';
|
||||||
}
|
}
|
||||||
message << TR("Cordiali saluti\nAmministrazione ") << prefix().firm().ragione_sociale();
|
message << TR("Cordiali saluti\nAmministrazione ") << prefix().firm().ragione_sociale();
|
||||||
pdf.temp("cu", "pdf");
|
pdf.temp("sc", "pdf");
|
||||||
attachment.add(pdf);
|
attachment.add(pdf);
|
||||||
pr.set_export_file(pdf, true);
|
pr.set_export_file(pdf, true);
|
||||||
pr.open();
|
pr.open();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user