Aggiunto megafigo menu Indice alla stampa liquidazione
git-svn-id: svn://10.65.10.50/trunk@1244 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
da9d9b0841
commit
5bb4ea1e2d
@ -205,6 +205,7 @@ bool CG0400_application::user_create()
|
|||||||
{
|
{
|
||||||
_tabpim = new TTable(TAB_PIM);
|
_tabpim = new TTable(TAB_PIM);
|
||||||
_tabreg = new TTable(TAB_REG);
|
_tabreg = new TTable(TAB_REG);
|
||||||
|
|
||||||
_tabais = new TTable("%AIS");
|
_tabais = new TTable("%AIS");
|
||||||
_tablia = new TTable("%LIA");
|
_tablia = new TTable("%LIA");
|
||||||
_anag = new TLocalisamfile(LF_ANAG);
|
_anag = new TLocalisamfile(LF_ANAG);
|
||||||
|
@ -24,7 +24,7 @@ inline TLiquidazione_app& app()
|
|||||||
|
|
||||||
TLiquidazione_app::TLiquidazione_app() :
|
TLiquidazione_app::TLiquidazione_app() :
|
||||||
_ditte(NULL), _selected(10000),
|
_ditte(NULL), _selected(10000),
|
||||||
_year(4), _nomiditte(100)
|
_year(4), _nomiditte(100), _firm_bookmark(-1)
|
||||||
{
|
{
|
||||||
_isprint = _is_interactive = _canprint = TRUE;
|
_isprint = _is_interactive = _canprint = TRUE;
|
||||||
_isplafond = _printonly = _is_visliq = FALSE;
|
_isplafond = _printonly = _is_visliq = FALSE;
|
||||||
|
@ -301,6 +301,10 @@ class TLiquidazione_app : public TPrint_application
|
|||||||
TRecfield* _rmb_codiva;
|
TRecfield* _rmb_codiva;
|
||||||
TRecfield* _rmb_tiporeg;
|
TRecfield* _rmb_tiporeg;
|
||||||
|
|
||||||
|
// supporto per l'ultima figata
|
||||||
|
int _firm_bookmark;
|
||||||
|
int _att_bookmark;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
long select_firm_range(long from, long to, wht freq);
|
long select_firm_range(long from, long to, wht freq);
|
||||||
|
@ -131,7 +131,9 @@ void TLiquidazione_app::describe_name(int month, TToken_string& codatts)
|
|||||||
|
|
||||||
d->_f1 = month;
|
d->_f1 = month;
|
||||||
d->_f2 = _isbenzinaro;
|
d->_f2 = _isbenzinaro;
|
||||||
|
|
||||||
|
// TBI: bookmark!
|
||||||
|
|
||||||
if (_mixed && codatts.items() == 1)
|
if (_mixed && codatts.items() == 1)
|
||||||
d->_f0 = atoi(codatts.mid(5));
|
d->_f0 = atoi(codatts.mid(5));
|
||||||
else d->_f0 = 0;
|
else d->_f0 = 0;
|
||||||
@ -149,6 +151,7 @@ void TLiquidazione_app::describe_firm(int month)
|
|||||||
d->_s2 = _freqviva;
|
d->_s2 = _freqviva;
|
||||||
d->_f1 = month;
|
d->_f1 = month;
|
||||||
_descr_arr.add(d);
|
_descr_arr.add(d);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -184,7 +187,9 @@ void TLiquidazione_app::describe_plafond(int month, const char* codatt)
|
|||||||
}
|
}
|
||||||
} // for tipo esenzione plafond
|
} // for tipo esenzione plafond
|
||||||
|
|
||||||
_descr_arr.add(d);
|
_descr_arr.add(d);
|
||||||
|
|
||||||
|
// bookmark
|
||||||
}
|
}
|
||||||
|
|
||||||
void TLiquidazione_app::describe_ventilation(int month, const char* codatt)
|
void TLiquidazione_app::describe_ventilation(int month, const char* codatt)
|
||||||
@ -770,6 +775,7 @@ void TLiquidazione_app::set_firm(_DescrItem& d)
|
|||||||
}
|
}
|
||||||
|
|
||||||
reset_header();
|
reset_header();
|
||||||
|
|
||||||
set_header(1,"Ditta %s %s@109gData @<@125gPag. @#",
|
set_header(1,"Ditta %s %s@109gData @<@125gPag. @#",
|
||||||
(const char*)(d._s0), (const char*)(d._s1));
|
(const char*)(d._s0), (const char*)(d._s1));
|
||||||
set_header(2,"");
|
set_header(2,"");
|
||||||
@ -798,6 +804,11 @@ void TLiquidazione_app::set_att(_DescrItem& d)
|
|||||||
TString tim_title(78);
|
TString tim_title(78);
|
||||||
TString att_title(48);
|
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";
|
tim_title << "Liquidazione IVA";
|
||||||
|
|
||||||
if (d._f1 == 13)
|
if (d._f1 == 13)
|
||||||
@ -855,6 +866,8 @@ void TLiquidazione_app::set_att(_DescrItem& d)
|
|||||||
|
|
||||||
void TLiquidazione_app::set_plafond(_DescrItem& d)
|
void TLiquidazione_app::set_plafond(_DescrItem& d)
|
||||||
{
|
{
|
||||||
|
set_bookmark("Quadro plafond", _att_bookmark);
|
||||||
|
|
||||||
real r1 = d._r2 - d._r1 - d._r0;
|
real r1 = d._r2 - d._r1 - d._r0;
|
||||||
real r2 = d._r5 - d._r4 - d._r3;
|
real r2 = d._r5 - d._r4 - d._r3;
|
||||||
real r3 = d._r8 - d._r7 - d._r6;
|
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
|
if (d._f0) // e' il primo
|
||||||
{
|
{
|
||||||
// intestazioncina
|
// intestazioncina
|
||||||
|
set_bookmark("Riepilogo progressivi", _att_bookmark);
|
||||||
|
|
||||||
set_row(1," Cod.@41gVENDITE@71gCORRISPETTIVI@106gACQUISTI");
|
set_row(1," Cod.@41gVENDITE@71gCORRISPETTIVI@106gACQUISTI");
|
||||||
set_row(2," IVA Descrizione@30gImponibile@49gImposta@63gImponibile"
|
set_row(2," IVA Descrizione@30gImponibile@49gImposta@63gImponibile"
|
||||||
"@82gImposta@96gImponibile@115gImposta");
|
"@82gImposta@96gImponibile@115gImposta");
|
||||||
@ -1090,7 +1105,9 @@ void TLiquidazione_app::set_pumpam(_DescrItem& d)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (printed)
|
if (printed)
|
||||||
{
|
{
|
||||||
|
set_bookmark("Altri dati", _att_bookmark);
|
||||||
|
|
||||||
set_row(1,"");
|
set_row(1,"");
|
||||||
set_row(2,"");
|
set_row(2,"");
|
||||||
set_row(3,"ALTRI DATI RELATIVI ALLA DICHIARAZIONE@55gimponibile"
|
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_debt = rettifiche;
|
||||||
if (rettifiche.sign() < 0) rett_cred = -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(1,""); set_row(2,""); set_row(3,""); set_row(4,"");
|
||||||
set_row(5,"@11g@bCALCOLO LIQUIDAZIONE D'IMPOSTA@r");
|
set_row(5,"@11g@bCALCOLO LIQUIDAZIONE D'IMPOSTA@r");
|
||||||
set_row(6,""); int rw = 7;
|
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.
|
// non si stampano se la stampa serve per la visualizz.
|
||||||
if (d._arr.items() > 0 && !_is_visliq)
|
if (d._arr.items() > 0 && !_is_visliq)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
for (int i = 0; i < d._arr.items(); i++)
|
for (int i = 0; i < d._arr.items(); i++)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -1237,6 +1258,8 @@ void TLiquidazione_app::set_grand(_DescrItem& d)
|
|||||||
|
|
||||||
if (di._flags == RIMBORSO)
|
if (di._flags == RIMBORSO)
|
||||||
{
|
{
|
||||||
|
set_bookmark("Prospetto di rimborso", _firm_bookmark);
|
||||||
|
|
||||||
set_print_zero(TRUE);
|
set_print_zero(TRUE);
|
||||||
set_row(rw++,"");
|
set_row(rw++,"");
|
||||||
set_row(rw++,"");
|
set_row(rw++,"");
|
||||||
@ -1281,11 +1304,14 @@ void TLiquidazione_app::set_grand(_DescrItem& d)
|
|||||||
// prospettino versamento
|
// prospettino versamento
|
||||||
else if (di._flags == DELEGA)
|
else if (di._flags == DELEGA)
|
||||||
{
|
{
|
||||||
|
|
||||||
int rr = rw;
|
int rr = rw;
|
||||||
if (rw < (printer().formlen() - 10))
|
if (rw < (printer().formlen() - 10))
|
||||||
rw = printer().formlen() - 10;
|
rw = printer().formlen() - 10;
|
||||||
|
|
||||||
for (int i = rr; i < rw; i++) set_row(i,"");
|
for (int i = rr; i < rw; i++) set_row(i,"");
|
||||||
|
|
||||||
|
set_bookmark("Riepilogo versamenti", _firm_bookmark);
|
||||||
|
|
||||||
TString dt = di._d0.string();
|
TString dt = di._d0.string();
|
||||||
TString vr = di._r0.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);
|
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;
|
int row = get_maxrow()+1;
|
||||||
if (d._f0 & IS_PRORATA)
|
if (d._f0 & IS_PRORATA)
|
||||||
{
|
{
|
||||||
|
set_bookmark("Calcolo pro-rata", _firm_bookmark);
|
||||||
|
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
set_print_zero(TRUE);
|
set_print_zero(TRUE);
|
||||||
set_row(row++,"");
|
set_row(row++,"");
|
||||||
@ -1341,6 +1371,8 @@ void TLiquidazione_app::set_ventila(_DescrItem& d)
|
|||||||
if (d._arr.items() == 0 || d._r0.is_zero())
|
if (d._arr.items() == 0 || d._r0.is_zero())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
set_bookmark("Prospetto ventilazione", _att_bookmark);
|
||||||
|
|
||||||
set_row(1,"@54gPROSPETTO VENTILAZIONE");
|
set_row(1,"@54gPROSPETTO VENTILAZIONE");
|
||||||
set_row(2,"");
|
set_row(2,"");
|
||||||
set_row(3,"");
|
set_row(3,"");
|
||||||
@ -1395,6 +1427,7 @@ void TLiquidazione_app::set_regagr(_DescrItem& d)
|
|||||||
|
|
||||||
// percentuale detraibilita'
|
// percentuale detraibilita'
|
||||||
// real pdetr = ();
|
// real pdetr = ();
|
||||||
|
set_bookmark("Prospetto regime agricolo", _att_bookmark);
|
||||||
|
|
||||||
set_row(1,"@50gPROSPETTO REGIME AGRICOLO");
|
set_row(1,"@50gPROSPETTO REGIME AGRICOLO");
|
||||||
set_row(2,"");
|
set_row(2,"");
|
||||||
@ -1464,6 +1497,8 @@ void TLiquidazione_app::set_viaggio(_DescrItem& d)
|
|||||||
|
|
||||||
set_print_zero(TRUE);
|
set_print_zero(TRUE);
|
||||||
|
|
||||||
|
set_bookmark("Prospetto 74 ter", _att_bookmark);
|
||||||
|
|
||||||
set_row(1,"");
|
set_row(1,"");
|
||||||
set_row(2,"@54gRIEPILOGO 74 TER");
|
set_row(2,"@54gRIEPILOGO 74 TER");
|
||||||
set_row(3,"");
|
set_row(3,"");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user