Patch level : 12.0 362
Files correlati : cg4.exe cg5.exe Corretta la stampa dei riporti dei registri. Coretta la segnalazione di tredicesima non calcolata nella comunicazione annuale git-svn-id: svn://10.65.10.50/branches/R_10_00@23679 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
c814d3e8c7
commit
b26c9de3db
@ -36,7 +36,7 @@ static enum tipo_sospensione { nessuna, normale, vol_affari, liquidazione };
|
|||||||
inline TStampa_registri_app& app() { return (TStampa_registri_app&)main_app(); }
|
inline TStampa_registri_app& app() { return (TStampa_registri_app&)main_app(); }
|
||||||
|
|
||||||
// Righe da saltare nel footer per evitare di scrivere sulla perforazione
|
// Righe da saltare nel footer per evitare di scrivere sulla perforazione
|
||||||
#define RIGHE_FOOTER 3
|
#define RIGHE_FOOTER 4
|
||||||
|
|
||||||
bool TStampa_registri_app::filter_func (const TRelation * r)
|
bool TStampa_registri_app::filter_func (const TRelation * r)
|
||||||
{
|
{
|
||||||
@ -1182,7 +1182,7 @@ messaggio TStampa_registri_app::controlla_liquidazione()
|
|||||||
lim.put("CODTAB", chiave);
|
lim.put("CODTAB", chiave);
|
||||||
if (lim.read() != NOERR || !lim.get_bool("B0"))
|
if (lim.read() != NOERR || !lim.get_bool("B0"))
|
||||||
{
|
{
|
||||||
if (lim.get_bool("B1"))
|
if (!lim.get_bool("B1"))
|
||||||
mesi_cal ="";
|
mesi_cal ="";
|
||||||
else
|
else
|
||||||
mesi_cal << itom(i) << '\n';
|
mesi_cal << itom(i) << '\n';
|
||||||
@ -1294,7 +1294,8 @@ int TStampa_registri_app::stampa_prospetto_IVA(int rr, int tipo_prosp)
|
|||||||
if (tipo_prosp == 0) // Stampa il prospetto iniziale per progressivi attuali (periodo)
|
if (tipo_prosp == 0) // Stampa il prospetto iniziale per progressivi attuali (periodo)
|
||||||
{
|
{
|
||||||
reset_print();
|
reset_print();
|
||||||
TString riga(_stampa_width, '-');
|
/* nel fondo pagina
|
||||||
|
TString riga(_stampa_width, '-');
|
||||||
set_row(rr++, riga);
|
set_row(rr++, riga);
|
||||||
|
|
||||||
riga = TR("Legenda Tipo Operazione: 1=intra; 2=AF art.34 comma 3");
|
riga = TR("Legenda Tipo Operazione: 1=intra; 2=AF art.34 comma 3");
|
||||||
@ -1306,6 +1307,7 @@ int TStampa_registri_app::stampa_prospetto_IVA(int rr, int tipo_prosp)
|
|||||||
if (_annoes >= 2015)
|
if (_annoes >= 2015)
|
||||||
riga << TR("; 6=Scissione pagamenti art.17 ter");
|
riga << TR("; 6=Scissione pagamenti art.17 ter");
|
||||||
set_row(rr++, riga);
|
set_row(rr++, riga);
|
||||||
|
*/
|
||||||
|
|
||||||
_stampa = _st_tot_fin;
|
_stampa = _st_tot_fin;
|
||||||
if (_stampa)
|
if (_stampa)
|
||||||
@ -1531,13 +1533,16 @@ int TStampa_registri_app::stampa_acquisti(int row)
|
|||||||
|
|
||||||
void TStampa_registri_app::set_page_tot_reg()
|
void TStampa_registri_app::set_page_tot_reg()
|
||||||
{
|
{
|
||||||
int rr = 1;
|
printer().formfeed();
|
||||||
rr = stampa_prospetto_IVA(rr, 0); // Intestazione prospetto IVA per aliquota
|
|
||||||
|
int rr = 1;
|
||||||
|
|
||||||
|
rr = stampa_prospetto_IVA(rr, 0); // Intestazione prospetto IVA per aliquota
|
||||||
|
|
||||||
//*****deve azzerare i totali progressivi dei riporti e segnalare all'header di non stampare
|
//*****deve azzerare i totali progressivi dei riporti e segnalare all'header di non stampare
|
||||||
//la riga di riporto
|
//la riga di riporto
|
||||||
_totali_stampati = true; //siamo in stampa totali, quindi...
|
_totali_stampati = true; //siamo in stampa totali, quindi...
|
||||||
_riporti_stampati = false; //inoltre non deve stapare riporti mentre stampa i totali
|
_riporti = false; //inoltre non deve stapare riporti mentre stampa i totali
|
||||||
|
|
||||||
_totdoc_prog = _totimpn_prog = _totimps_prog = ZERO;
|
_totdoc_prog = _totimpn_prog = _totimps_prog = ZERO;
|
||||||
|
|
||||||
@ -2307,7 +2312,7 @@ bool TStampa_registri_app::preprocess_page(int file, int counter)
|
|||||||
_auto_intraf = false;
|
_auto_intraf = false;
|
||||||
printer().formfeed();
|
printer().formfeed();
|
||||||
_totali_stampati = false; //siamo al cambio periodo (mese/trimestre),quindi resetto il flag di stampa totali
|
_totali_stampati = false; //siamo al cambio periodo (mese/trimestre),quindi resetto il flag di stampa totali
|
||||||
_riporti_stampati = false;//e pure quello dei riporti,visto che "A Riporto" non va nella prima pagina del mese
|
_riporti = false;//e pure quello dei riporti,visto che "A Riporto" non va nella prima pagina del mese
|
||||||
}
|
}
|
||||||
|
|
||||||
_dataregp = _datareg;
|
_dataregp = _datareg;
|
||||||
@ -2984,7 +2989,7 @@ void TStampa_registri_app::preprocess_header()
|
|||||||
set_header(r++, riga);
|
set_header(r++, riga);
|
||||||
|
|
||||||
//*****valori della riga Riporto
|
//*****valori della riga Riporto
|
||||||
if (_riporti_stampati)
|
if (_riporti)
|
||||||
{
|
{
|
||||||
if (_stampa_width == 132)
|
if (_stampa_width == 132)
|
||||||
set_header(r++, FR("@0gRiporto progressivi@70g%15s@85g%15s@107g%15s"),
|
set_header(r++, FR("@0gRiporto progressivi@70g%15s@85g%15s@107g%15s"),
|
||||||
@ -2999,7 +3004,8 @@ void TStampa_registri_app::preprocess_header()
|
|||||||
_totimpn_prog += _progr_impn;
|
_totimpn_prog += _progr_impn;
|
||||||
_totimps_prog += _progr_imps;
|
_totimps_prog += _progr_imps;
|
||||||
}
|
}
|
||||||
set_header(r++, riga);
|
// set_header(r++, riga);
|
||||||
|
set_header(r++, "");
|
||||||
_totali_stampati = false;
|
_totali_stampati = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3024,10 +3030,24 @@ void TStampa_registri_app::preprocess_footer()
|
|||||||
_totdoc_prog.string(".2"), _totimpn_prog.string(".2"), _totimps_prog.string(".2"));
|
_totdoc_prog.string(".2"), _totimpn_prog.string(".2"), _totimps_prog.string(".2"));
|
||||||
|
|
||||||
set_footer(r++, riga);
|
set_footer(r++, riga);
|
||||||
_riporti_stampati = true;
|
|
||||||
|
/* TString riga(_stampa_width, '-');
|
||||||
|
|
||||||
|
set_footer(r++, riga); */
|
||||||
|
riga = TR("Legenda Tipo Operazione: 1=intra; 2=AF art.34 comma 3");
|
||||||
|
if (_auto_intraf)
|
||||||
|
riga << TR("; 3=intra e AF art.34 comma 3");
|
||||||
|
riga << TR("; 4=liquidazione differita");
|
||||||
|
if (has_module(ICAUT))
|
||||||
|
riga << TR("; 5=IVA per cassa");
|
||||||
|
if (_annoes >= 2015)
|
||||||
|
riga << TR("; 6=Scissione pagamenti art.17 ter");
|
||||||
|
set_footer(r++, riga);
|
||||||
|
|
||||||
|
_riporti = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
_riporti_stampati = false;
|
_riporti = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TStampa_registri_app::on_page_printed(int file)
|
void TStampa_registri_app::on_page_printed(int file)
|
||||||
@ -3407,6 +3427,7 @@ void TStampa_registri_app::no_movimenti()
|
|||||||
{
|
{
|
||||||
TRecnotype rec = _tabreg->recno();
|
TRecnotype rec = _tabreg->recno();
|
||||||
_mov_empty = true;
|
_mov_empty = true;
|
||||||
|
|
||||||
int da = 1, a = _fino_a_mese;
|
int da = 1, a = _fino_a_mese;
|
||||||
if (_tipo_stampa == bollato || _tipo_stampa == rif_giornale)
|
if (_tipo_stampa == bollato || _tipo_stampa == rif_giornale)
|
||||||
{
|
{
|
||||||
@ -3458,7 +3479,8 @@ void TStampa_registri_app::no_movimenti()
|
|||||||
}
|
}
|
||||||
send_message(calc ? 'R' : 'C', app, calc ? a : mese);
|
send_message(calc ? 'R' : 'C', app, calc ? a : mese);
|
||||||
}
|
}
|
||||||
|
if (_tipo_reg == riepilogativo)
|
||||||
|
_totali_stampati = true;
|
||||||
if (some_IVAxCassa(da, a))
|
if (some_IVAxCassa(da, a))
|
||||||
{
|
{
|
||||||
if (! printer().isopen())
|
if (! printer().isopen())
|
||||||
@ -3671,7 +3693,7 @@ bool TStampa_registri_app::set_print(int n)
|
|||||||
_totimpn_prog = 0;
|
_totimpn_prog = 0;
|
||||||
_totimps_prog = 0;
|
_totimps_prog = 0;
|
||||||
_rows_left = 69;
|
_rows_left = 69;
|
||||||
_riporti_stampati = false;
|
_riporti = false;
|
||||||
_totali_stampati = false;
|
_totali_stampati = false;
|
||||||
|
|
||||||
_annoes = m.get_int(ANNO);//in realta' e' l'anno IVA !!!
|
_annoes = m.get_int(ANNO);//in realta' e' l'anno IVA !!!
|
||||||
|
@ -50,7 +50,7 @@ class TStampa_registri_app : public TPrintapp
|
|||||||
bool _rif_vid, _intesta_vidi, _intesta_liq, _stampa_data_reg, _ok_vidi, _stampa_num_pag;
|
bool _rif_vid, _intesta_vidi, _intesta_liq, _stampa_data_reg, _ok_vidi, _stampa_num_pag;
|
||||||
bool _sosp_imposta, _riep_liq;
|
bool _sosp_imposta, _riep_liq;
|
||||||
bool _st_tot_fin;
|
bool _st_tot_fin;
|
||||||
bool _riporti_stampati, _totali_stampati;
|
bool _riporti, _totali_stampati;
|
||||||
char _frequiva, _tipo_riepilogativo, _freq_riepilogo;
|
char _frequiva, _tipo_riepilogativo, _freq_riepilogo;
|
||||||
TDate _data_da, _data_a, _data_stampa, _dataregp, _dataregs, _datareg;
|
TDate _data_da, _data_a, _data_stampa, _dataregp, _dataregs, _datareg;
|
||||||
TDate _u_data;
|
TDate _u_data;
|
||||||
|
@ -509,7 +509,7 @@ void TDich_periodica_iva_mask::read_iva_data()
|
|||||||
TString8 key; key.format("%4d13", anno);
|
TString8 key; key.format("%4d13", anno);
|
||||||
const TRectype& lim = cache().get("LIM", key);
|
const TRectype& lim = cache().get("LIM", key);
|
||||||
|
|
||||||
if (lim.get_bool("B0"))
|
if (!lim.get_bool("B0"))
|
||||||
{
|
{
|
||||||
const TRectype& lam = cache().get("LAM", key);
|
const TRectype& lam = cache().get("LAM", key);
|
||||||
TString descrizione(120); descrizione << lim.get("S0") << lim.get("S1");
|
TString descrizione(120); descrizione << lim.get("S0") << lim.get("S1");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user