From 5bb4ea1e2d4230f7fbd330addcd376c6c0d68f2d Mon Sep 17 00:00:00 2001 From: villa Date: Thu, 13 Apr 1995 07:44:20 +0000 Subject: [PATCH] Aggiunto megafigo menu Indice alla stampa liquidazione git-svn-id: svn://10.65.10.50/trunk@1244 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg0400.cpp | 1 + cg/cg4300.cpp | 2 +- cg/cg4300.h | 4 ++++ cg/cg4304.cpp | 47 +++++++++++++++++++++++++++++++++++++++++------ 4 files changed, 47 insertions(+), 7 deletions(-) diff --git a/cg/cg0400.cpp b/cg/cg0400.cpp index 57f5479f9..f025f0900 100755 --- a/cg/cg0400.cpp +++ b/cg/cg0400.cpp @@ -205,6 +205,7 @@ bool CG0400_application::user_create() { _tabpim = new TTable(TAB_PIM); _tabreg = new TTable(TAB_REG); + _tabais = new TTable("%AIS"); _tablia = new TTable("%LIA"); _anag = new TLocalisamfile(LF_ANAG); diff --git a/cg/cg4300.cpp b/cg/cg4300.cpp index 9d6537805..8cbf464d1 100755 --- a/cg/cg4300.cpp +++ b/cg/cg4300.cpp @@ -24,7 +24,7 @@ inline TLiquidazione_app& app() TLiquidazione_app::TLiquidazione_app() : _ditte(NULL), _selected(10000), -_year(4), _nomiditte(100) +_year(4), _nomiditte(100), _firm_bookmark(-1) { _isprint = _is_interactive = _canprint = TRUE; _isplafond = _printonly = _is_visliq = FALSE; diff --git a/cg/cg4300.h b/cg/cg4300.h index e08281cbe..d91486e6e 100755 --- a/cg/cg4300.h +++ b/cg/cg4300.h @@ -301,6 +301,10 @@ class TLiquidazione_app : public TPrint_application TRecfield* _rmb_codiva; TRecfield* _rmb_tiporeg; + // supporto per l'ultima figata + int _firm_bookmark; + int _att_bookmark; + protected: long select_firm_range(long from, long to, wht freq); diff --git a/cg/cg4304.cpp b/cg/cg4304.cpp index cc279f2eb..c74d137a1 100755 --- a/cg/cg4304.cpp +++ b/cg/cg4304.cpp @@ -131,7 +131,9 @@ void TLiquidazione_app::describe_name(int month, TToken_string& codatts) d->_f1 = month; d->_f2 = _isbenzinaro; - + + // TBI: bookmark! + if (_mixed && codatts.items() == 1) d->_f0 = atoi(codatts.mid(5)); else d->_f0 = 0; @@ -149,6 +151,7 @@ void TLiquidazione_app::describe_firm(int month) d->_s2 = _freqviva; d->_f1 = month; _descr_arr.add(d); + } @@ -184,7 +187,9 @@ void TLiquidazione_app::describe_plafond(int month, const char* codatt) } } // for tipo esenzione plafond - _descr_arr.add(d); + _descr_arr.add(d); + + // bookmark } void TLiquidazione_app::describe_ventilation(int month, const char* codatt) @@ -770,6 +775,7 @@ void TLiquidazione_app::set_firm(_DescrItem& d) } reset_header(); + set_header(1,"Ditta %s %s@109gData @<@125gPag. @#", (const char*)(d._s0), (const char*)(d._s1)); set_header(2,""); @@ -798,6 +804,11 @@ void TLiquidazione_app::set_att(_DescrItem& d) TString tim_title(78); TString att_title(48); + // Bookmark + if (_firm_bookmark == -1) + _firm_bookmark = set_bookmark(d._s1); + _att_bookmark = set_bookmark(d._s3, _firm_bookmark); + tim_title << "Liquidazione IVA"; if (d._f1 == 13) @@ -855,6 +866,8 @@ void TLiquidazione_app::set_att(_DescrItem& d) void TLiquidazione_app::set_plafond(_DescrItem& d) { + set_bookmark("Quadro plafond", _att_bookmark); + real r1 = d._r2 - d._r1 - d._r0; real r2 = d._r5 - d._r4 - d._r3; real r3 = d._r8 - d._r7 - d._r6; @@ -903,6 +916,8 @@ void TLiquidazione_app::set_pim(_DescrItem& d) if (d._f0) // e' il primo { // intestazioncina + set_bookmark("Riepilogo progressivi", _att_bookmark); + set_row(1," Cod.@41gVENDITE@71gCORRISPETTIVI@106gACQUISTI"); set_row(2," IVA Descrizione@30gImponibile@49gImposta@63gImponibile" "@82gImposta@96gImponibile@115gImposta"); @@ -1090,7 +1105,9 @@ void TLiquidazione_app::set_pumpam(_DescrItem& d) } if (printed) - { + { + set_bookmark("Altri dati", _att_bookmark); + set_row(1,""); set_row(2,""); set_row(3,"ALTRI DATI RELATIVI ALLA DICHIARAZIONE@55gimponibile" @@ -1131,7 +1148,9 @@ void TLiquidazione_app::set_grand(_DescrItem& d) if (rettifiche.sign() > 0) rett_debt = rettifiche; if (rettifiche.sign() < 0) rett_cred = -rettifiche; - + + set_bookmark("Riepilogativo liquidazione", _firm_bookmark); + set_row(1,""); set_row(2,""); set_row(3,""); set_row(4,""); set_row(5,"@11g@bCALCOLO LIQUIDAZIONE D'IMPOSTA@r"); set_row(6,""); int rw = 7; @@ -1230,6 +1249,8 @@ void TLiquidazione_app::set_grand(_DescrItem& d) // non si stampano se la stampa serve per la visualizz. if (d._arr.items() > 0 && !_is_visliq) { + + for (int i = 0; i < d._arr.items(); i++) { @@ -1237,6 +1258,8 @@ void TLiquidazione_app::set_grand(_DescrItem& d) if (di._flags == RIMBORSO) { + set_bookmark("Prospetto di rimborso", _firm_bookmark); + set_print_zero(TRUE); set_row(rw++,""); set_row(rw++,""); @@ -1281,11 +1304,14 @@ void TLiquidazione_app::set_grand(_DescrItem& d) // prospettino versamento else if (di._flags == DELEGA) { + int rr = rw; if (rw < (printer().formlen() - 10)) rw = printer().formlen() - 10; for (int i = rr; i < rw; i++) set_row(i,""); + + set_bookmark("Riepilogo versamenti", _firm_bookmark); TString dt = di._d0.string(); TString vr = di._r0.string("."); @@ -1302,7 +1328,9 @@ void TLiquidazione_app::set_grand(_DescrItem& d) } if (!_is_visliq && !_isregis) set_auto_ff(TRUE); - else set_auto_ff(FALSE); + else set_auto_ff(FALSE); + + _firm_bookmark = -1; } @@ -1313,7 +1341,9 @@ bool TLiquidazione_app::set_annual(_DescrItem& d) int row = get_maxrow()+1; if (d._f0 & IS_PRORATA) - { + { + set_bookmark("Calcolo pro-rata", _firm_bookmark); + ret = TRUE; set_print_zero(TRUE); set_row(row++,""); @@ -1341,6 +1371,8 @@ void TLiquidazione_app::set_ventila(_DescrItem& d) if (d._arr.items() == 0 || d._r0.is_zero()) return; + set_bookmark("Prospetto ventilazione", _att_bookmark); + set_row(1,"@54gPROSPETTO VENTILAZIONE"); set_row(2,""); set_row(3,""); @@ -1395,6 +1427,7 @@ void TLiquidazione_app::set_regagr(_DescrItem& d) // percentuale detraibilita' // real pdetr = (); + set_bookmark("Prospetto regime agricolo", _att_bookmark); set_row(1,"@50gPROSPETTO REGIME AGRICOLO"); set_row(2,""); @@ -1464,6 +1497,8 @@ void TLiquidazione_app::set_viaggio(_DescrItem& d) set_print_zero(TRUE); + set_bookmark("Prospetto 74 ter", _att_bookmark); + set_row(1,""); set_row(2,"@54gRIEPILOGO 74 TER"); set_row(3,"");