Corretta richiesta di posizionamento all'inizio di ogni stampa e non
all'inizio di ogni record. git-svn-id: svn://10.65.10.50/trunk@2142 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
89e80e7560
commit
5ed26f14c8
@ -327,7 +327,7 @@ char TStampa_deleghe_IVA::frequenza_versamenti(long firm, int year) const
|
|||||||
bool TStampa_deleghe_IVA::print_deleghe()
|
bool TStampa_deleghe_IVA::print_deleghe()
|
||||||
{
|
{
|
||||||
bool ok = printer().open();
|
bool ok = printer().open();
|
||||||
|
bool arng = FALSE;
|
||||||
TForm f(_profilo, format("%05ld",_codice));
|
TForm f(_profilo, format("%05ld",_codice));
|
||||||
|
|
||||||
TCursor& cur = *f.cursor();
|
TCursor& cur = *f.cursor();
|
||||||
@ -388,8 +388,12 @@ bool TStampa_deleghe_IVA::print_deleghe()
|
|||||||
delega.put("S6", tributo);
|
delega.put("S6", tributo);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i > 0) f.set_arrange(FALSE);
|
|
||||||
ok = f.print(-1); // Stampa solo il record corrente
|
ok = f.print(-1); // Stampa solo il record corrente
|
||||||
|
if (!arng)
|
||||||
|
{ // Scopo di cio' e' far si' che esegua il
|
||||||
|
f.set_arrange(arng); // posizionamento solo la prima volta che chiama
|
||||||
|
arng = TRUE; // f.print()
|
||||||
|
}
|
||||||
if (!ok) break;
|
if (!ok) break;
|
||||||
|
|
||||||
bool scrivi = _aggiorna_codici && (!cera_abi || !cera_conc || !cera_tribu);
|
bool scrivi = _aggiorna_codici && (!cera_abi || !cera_conc || !cera_tribu);
|
||||||
|
@ -327,7 +327,7 @@ char TStampa_deleghe_IVA::frequenza_versamenti(long firm, int year) const
|
|||||||
bool TStampa_deleghe_IVA::print_deleghe()
|
bool TStampa_deleghe_IVA::print_deleghe()
|
||||||
{
|
{
|
||||||
bool ok = printer().open();
|
bool ok = printer().open();
|
||||||
|
bool arng = FALSE;
|
||||||
TForm f(_profilo, format("%05ld",_codice));
|
TForm f(_profilo, format("%05ld",_codice));
|
||||||
|
|
||||||
TCursor& cur = *f.cursor();
|
TCursor& cur = *f.cursor();
|
||||||
@ -388,8 +388,12 @@ bool TStampa_deleghe_IVA::print_deleghe()
|
|||||||
delega.put("S6", tributo);
|
delega.put("S6", tributo);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i > 0) f.set_arrange(FALSE);
|
|
||||||
ok = f.print(-1); // Stampa solo il record corrente
|
ok = f.print(-1); // Stampa solo il record corrente
|
||||||
|
if (!arng)
|
||||||
|
{ // Scopo di cio' e' far si' che esegua il
|
||||||
|
f.set_arrange(arng); // posizionamento solo la prima volta che chiama
|
||||||
|
arng = TRUE; // f.print()
|
||||||
|
}
|
||||||
if (!ok) break;
|
if (!ok) break;
|
||||||
|
|
||||||
bool scrivi = _aggiorna_codici && (!cera_abi || !cera_conc || !cera_tribu);
|
bool scrivi = _aggiorna_codici && (!cera_abi || !cera_conc || !cera_tribu);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user