Correzioni sulla stampa estratti conto e solleciti
git-svn-id: svn://10.65.10.50/trunk@2506 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
adbf15f624
commit
2bc1a8d7ed
@ -508,7 +508,11 @@ void TEC_array::add_row(const TRiga_partite& row)
|
|||||||
TEC_row& riga = new_row(row, data, imp, 1);
|
TEC_row& riga = new_row(row, data, imp, 1);
|
||||||
|
|
||||||
const int tipo_pag = row.get_int(PART_TIPOPAG);
|
const int tipo_pag = row.get_int(PART_TIPOPAG);
|
||||||
if (tipo_pag >= 2 && tipo_pag <= 7) // Controlla se e' un pagamento con effetti
|
const tipo_movimento tipo_mov = row.tipo();
|
||||||
|
|
||||||
|
// Controlla se e' un pagamento con effetti
|
||||||
|
if ((tipo_mov == tm_pagamento || tipo_mov == tm_pagamento_insoluto) &&
|
||||||
|
(tipo_pag >= 2 && tipo_pag <= 7))
|
||||||
{
|
{
|
||||||
const TDate data_pag(row.get(PART_DATAPAG));
|
const TDate data_pag(row.get(PART_DATAPAG));
|
||||||
const TDate& dls = form().data_limite_scaduto();
|
const TDate& dls = form().data_limite_scaduto();
|
||||||
@ -531,7 +535,7 @@ void TEC_array::add_row(const TRiga_partite& row)
|
|||||||
if (esp)
|
if (esp)
|
||||||
{
|
{
|
||||||
TImporto esposto(imp);
|
TImporto esposto(imp);
|
||||||
const char sezione = row.get_char(PART_TIPOCF) == 'C' ? 'D' : 'A';
|
const char sezione = row.get_char(PART_TIPOCF) == 'C' ? 'A' : 'D';
|
||||||
esposto.normalize(sezione);
|
esposto.normalize(sezione);
|
||||||
riga.esposto(esposto.valore());
|
riga.esposto(esposto.valore());
|
||||||
}
|
}
|
||||||
@ -623,18 +627,6 @@ void TEC_form::stampa_testata(TPrinter& pr)
|
|||||||
const word r = head.height()-1;
|
const word r = head.height()-1;
|
||||||
TPrintrow& head_row = head.row(r-1);
|
TPrintrow& head_row = head.row(r-1);
|
||||||
|
|
||||||
TPrint_section& body = section('B');
|
|
||||||
for (int f = body.fields()-1; f >= 0; f--)
|
|
||||||
{
|
|
||||||
// Leggi lo special e stampalo
|
|
||||||
TForm_item& fi = body.field(f);
|
|
||||||
if (fi.shown())
|
|
||||||
{
|
|
||||||
const int x = offset_x() + fi.x() - 1; // Le TPrintrow partono da 0, bestia!
|
|
||||||
head_row.put(fi.key(), x);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for (word j = 0; j <= r; j++)
|
for (word j = 0; j <= r; j++)
|
||||||
pr.setheaderline(j, head.row(j));
|
pr.setheaderline(j, head.row(j));
|
||||||
}
|
}
|
||||||
@ -1119,7 +1111,8 @@ TEC_form::TEC_form(const TEC_mask& m, bool gesval)
|
|||||||
TForm_item& tuns = section('F').find_field(PEC_TUNASSIGNED);
|
TForm_item& tuns = section('F').find_field(PEC_TUNASSIGNED);
|
||||||
if (uns.shown()) uns.hide();
|
if (uns.shown()) uns.hide();
|
||||||
if (tuns.shown()) tuns.hide();
|
if (tuns.shown()) tuns.hide();
|
||||||
|
|
||||||
|
genera_intestazioni(odd_page, head.height() - 1);
|
||||||
init_header(m); // Set fixed text
|
init_header(m); // Set fixed text
|
||||||
|
|
||||||
_total_rows = 1;
|
_total_rows = 1;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#include "../cg/saldacon.h"
|
#include "../cg/saldacon.h"
|
||||||
#include <mov.h>
|
#include <mov.h>
|
||||||
#include <pagsca.h>
|
#include <pagsca.h>
|
||||||
@ -405,7 +404,11 @@ void TESSL_array::add_row(const TRiga_partite& row)
|
|||||||
}
|
}
|
||||||
|
|
||||||
const int tipo_pag = row.get_int(PART_TIPOPAG);
|
const int tipo_pag = row.get_int(PART_TIPOPAG);
|
||||||
if (tipo_pag >= 2 && tipo_pag <= 7) // Controlla se e' un pagamento con effetti
|
const tipo_movimento tipo_mov = row.tipo();
|
||||||
|
|
||||||
|
// Controlla se e' un pagamento con effetti
|
||||||
|
if ((tipo_mov == tm_pagamento || tipo_mov == tm_pagamento_insoluto) &&
|
||||||
|
(tipo_pag >= 2 && tipo_pag <= 7))
|
||||||
{
|
{
|
||||||
const TDate data_pag(row.get(PART_DATAPAG));
|
const TDate data_pag(row.get(PART_DATAPAG));
|
||||||
const TDate& dls = form().data_limite_scaduto();
|
const TDate& dls = form().data_limite_scaduto();
|
||||||
@ -455,7 +458,7 @@ void TESSL_array::add_row(const TRiga_partite& row)
|
|||||||
if (in_valuta)
|
if (in_valuta)
|
||||||
{
|
{
|
||||||
TImporto il(row.importo(FALSE, 0x2));
|
TImporto il(row.importo(FALSE, 0x2));
|
||||||
il.normalize(sezione);
|
il.normalize(sezione == 'D' ? 'A' : 'D');
|
||||||
r.importo_in_lire(il.valore());
|
r.importo_in_lire(il.valore());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user