Modificato il calcolo sulle rate in attesa B.F (considera solo quelle
maggiori di _limbf). Corretta la stampa dei totali nel caso di selezione di un singolo cliente e la stampa di misteriose righe vuote. D'ora in avanti non dovrebbe mangiarsi neanche l'intestazione del cliente. git-svn-id: svn://10.65.10.50/trunk@2966 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
dd514ba4b5
commit
7a84c65933
@ -227,7 +227,7 @@ void TStampaScaduto::compute_all(TPartita& p)
|
||||
if (prima_riga_pagamento > -1 && prima_riga_pagamento == pp)
|
||||
data_pag = d; // Se e' il primo pagamento(in ordine di data) di questa rata
|
||||
// prende la data di scadenza relativa.
|
||||
if (data_pag >= _limbf && data_pag <= _limscad)
|
||||
if (data_pag >= _limbf) // && data_pag <= _limscad)
|
||||
bf += TImporto(sez,pg.get_real(field));
|
||||
}
|
||||
}
|
||||
@ -363,6 +363,9 @@ bool TStampaScaduto::preprocess_page(int file, int counter)
|
||||
|
||||
bool checked = cs.checked(c->read(_isequal));
|
||||
|
||||
if (!checked && !_end_printed) // Se non e' stato selezionato salta alla prossima part
|
||||
return FALSE;
|
||||
|
||||
if (_tipost == clienti || _tipost == fornitori)
|
||||
{
|
||||
_des = current_cursor()->curr(LF_CLIFO).get(CLI_RAGSOC);
|
||||
@ -399,8 +402,9 @@ bool TStampaScaduto::preprocess_page(int file, int counter)
|
||||
}
|
||||
}
|
||||
|
||||
if (!checked) // Se non e' stato selezionato salta alla prossima part
|
||||
return FALSE;
|
||||
TPartita p(rc);
|
||||
|
||||
int r = p.prima_fattura();
|
||||
|
||||
if (rc.get_int(PART_NRIGA) == 1)
|
||||
{
|
||||
@ -409,9 +413,10 @@ bool TStampaScaduto::preprocess_page(int file, int counter)
|
||||
{
|
||||
set_page_clifoco(nriga); // Setta le righe per stampare le informazioni del cli/fo/conto
|
||||
_pending_clifo = FALSE;
|
||||
set_row(nriga++,"");
|
||||
set_row(++nriga,"");
|
||||
nriga++;
|
||||
}
|
||||
if (r > 0)
|
||||
set_page_part(nriga);
|
||||
}
|
||||
|
||||
@ -426,9 +431,6 @@ bool TStampaScaduto::preprocess_page(int file, int counter)
|
||||
_sc_5 = "";
|
||||
_sc_6 = "";
|
||||
|
||||
TPartita p(rc);
|
||||
|
||||
int r = p.prima_fattura();
|
||||
if (r > 0) //Skip next partita if no fatture!
|
||||
{
|
||||
TRiga_partite& rp = p.riga(r);
|
||||
@ -447,7 +449,6 @@ bool TStampaScaduto::preprocess_page(int file, int counter)
|
||||
|
||||
if (r < 1)
|
||||
{
|
||||
reset_row(nriga);
|
||||
_pending_total--;
|
||||
if (_pending_clifo)
|
||||
_pending_clifo = (_pending_total > 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user