Patch level : 12.0 no-patch
Files correlati : cg Commento : Ripristinata versione precedente
This commit is contained in:
parent
d9bd2f7519
commit
60b8437b9c
@ -457,14 +457,7 @@ bool TStampa_registri_app::mask_mese (TMask_field& f, KEY k)
|
|||||||
if (id == MESE) //Per stampa su libro unico
|
if (id == MESE) //Per stampa su libro unico
|
||||||
mese = f.mask().get_int(MESE);
|
mese = f.mask().get_int(MESE);
|
||||||
if (id == FINO_A_MESE)
|
if (id == FINO_A_MESE)
|
||||||
{
|
|
||||||
mese = m.get_int(FINO_A_MESE); //Per stampa su bollato
|
mese = m.get_int(FINO_A_MESE); //Per stampa su bollato
|
||||||
if (mese == 20)
|
|
||||||
mese = 12;
|
|
||||||
if (mese == 12)
|
|
||||||
m.show(TIPO_RIEPILOGATIVO);
|
|
||||||
else m.hide(TIPO_RIEPILOGATIVO);
|
|
||||||
}
|
|
||||||
if (id == MESE)
|
if (id == MESE)
|
||||||
{
|
{
|
||||||
if (mese == 12)
|
if (mese == 12)
|
||||||
@ -477,9 +470,12 @@ bool TStampa_registri_app::mask_mese (TMask_field& f, KEY k)
|
|||||||
m.hide (TIPO_RIEPILOGATIVO);
|
m.hide (TIPO_RIEPILOGATIVO);
|
||||||
m.hide (RIF_VID);
|
m.hide (RIF_VID);
|
||||||
}
|
}
|
||||||
mese = m.get_int(FINO_A_MESE); //Per stampa su bollato
|
}
|
||||||
if (mese == 20)
|
if (id == FINO_A_MESE)
|
||||||
mese = 12;
|
{
|
||||||
|
if (mese == 12)
|
||||||
|
m.show (TIPO_RIEPILOGATIVO);
|
||||||
|
else m.hide (TIPO_RIEPILOGATIVO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (k==K_TAB && f.mask().is_running())
|
if (k==K_TAB && f.mask().is_running())
|
||||||
@ -605,11 +601,6 @@ bool TStampa_registri_app::mask_libun (TMask_field& f, KEY k)
|
|||||||
|
|
||||||
const TString& cod = f.mask().get(CODICE_LIBRO_IVA);
|
const TString& cod = f.mask().get(CODICE_LIBRO_IVA);
|
||||||
int fino_a_mese = f.mask().get_int(MESE);
|
int fino_a_mese = f.mask().get_int(MESE);
|
||||||
|
|
||||||
if (fino_a_mese == 12)
|
|
||||||
f.mask().show(TIPO_RIEPILOGATIVO);
|
|
||||||
else f.mask().hide(TIPO_RIEPILOGATIVO);
|
|
||||||
|
|
||||||
int anno = f.mask().get_int(ANNO);
|
int anno = f.mask().get_int(ANNO);
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
int last_mese = 13;
|
int last_mese = 13;
|
||||||
@ -1642,10 +1633,8 @@ void TStampa_registri_app::set_page_tot_reg()
|
|||||||
} // for
|
} // for
|
||||||
}
|
}
|
||||||
if (printed)
|
if (printed)
|
||||||
{
|
|
||||||
flush();
|
flush();
|
||||||
fine_mese();
|
fine_mese();
|
||||||
}
|
|
||||||
if (_stampa_plafonds)
|
if (_stampa_plafonds)
|
||||||
stampa_plafonds(rr);
|
stampa_plafonds(rr);
|
||||||
}
|
}
|
||||||
@ -2127,7 +2116,7 @@ bool TStampa_registri_app::print_IVAxCassa(int da_month, int a_month)
|
|||||||
return false; // Ho stampato qualcosa?
|
return false; // Ho stampato qualcosa?
|
||||||
}
|
}
|
||||||
|
|
||||||
int flags = 0x06;
|
int flags = 0x0;
|
||||||
FOR_EACH_ARRAY_ITEM(_riga_prospettoXcassa, r, obj)
|
FOR_EACH_ARRAY_ITEM(_riga_prospettoXcassa, r, obj)
|
||||||
{
|
{
|
||||||
const TRiga& ri = *(const TRiga*)obj;
|
const TRiga& ri = *(const TRiga*)obj;
|
||||||
@ -3764,14 +3753,9 @@ bool TStampa_registri_app::set_print(int n)
|
|||||||
}
|
}
|
||||||
else //stampe definitive
|
else //stampe definitive
|
||||||
{
|
{
|
||||||
_fino_a_mese = m.get_int(FINO_A_MESE);
|
|
||||||
_stampa_acconto = (_fino_a_mese == 20);
|
|
||||||
|
|
||||||
if (_stampa_acconto)
|
|
||||||
_fino_a_mese = 12;
|
|
||||||
if (_tipo_stampa == bollato || _tipo_stampa == rif_giornale)
|
if (_tipo_stampa == bollato || _tipo_stampa == rif_giornale)
|
||||||
{
|
{
|
||||||
|
_fino_a_mese = m.get_int(FINO_A_MESE);
|
||||||
_data_da = TDate(1, 1, _annoIVA); // Meglio cosi'
|
_data_da = TDate(1, 1, _annoIVA); // Meglio cosi'
|
||||||
}
|
}
|
||||||
else //stampa su libro unico
|
else //stampa su libro unico
|
||||||
@ -3787,12 +3771,6 @@ bool TStampa_registri_app::set_print(int n)
|
|||||||
int giorni_del_mese = 31;
|
int giorni_del_mese = 31;
|
||||||
if (_fino_a_mese == 12)
|
if (_fino_a_mese == 12)
|
||||||
{
|
{
|
||||||
TInteressi_IVA_table i; i.read(_annoIVA, _fino_a_mese);
|
|
||||||
|
|
||||||
giorni_del_mese = i.get_int("I0");
|
|
||||||
if (giorni_del_mese == 0)
|
|
||||||
giorni_del_mese = 20;
|
|
||||||
if (!_stampa_acconto)
|
|
||||||
giorni_del_mese = 31;
|
giorni_del_mese = 31;
|
||||||
_tipo_riepilogativo = m.get(TIPO_RIEPILOGATIVO)[0];
|
_tipo_riepilogativo = m.get(TIPO_RIEPILOGATIVO)[0];
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,6 @@ class TStampa_registri_app : public TPrintapp
|
|||||||
long _u_stampata, _primast, __firm, _uprotivap, _ditta;
|
long _u_stampata, _primast, __firm, _uprotivap, _ditta;
|
||||||
long _numini, _pagine_stampate;
|
long _numini, _pagine_stampate;
|
||||||
int _fino_a_mese, _cod_un_loc;
|
int _fino_a_mese, _cod_un_loc;
|
||||||
bool _stampa_acconto;
|
|
||||||
int _annoIVA, _r, _stampa_width, _mese_ultima_liq, _mese_credito;
|
int _annoIVA, _r, _stampa_width, _mese_ultima_liq, _mese_credito;
|
||||||
int _stampa_len, _stampa_mese, _size_header;
|
int _stampa_len, _stampa_mese, _size_header;
|
||||||
real _totale_doc, _credito;
|
real _totale_doc, _credito;
|
||||||
@ -121,7 +120,7 @@ public:
|
|||||||
bool ricalcola(int);
|
bool ricalcola(int);
|
||||||
bool stampa_riepilogo(int);
|
bool stampa_riepilogo(int);
|
||||||
void stampa_prospetto_riepilogo(tiporeg, const TString&, const TString&, const bool);
|
void stampa_prospetto_riepilogo(tiporeg, const TString&, const TString&, const bool);
|
||||||
void stampa_progressivi(TRiga_array&, TRigaiva_array&, tiporeg, const int);
|
void stampa_progressivi(TRiga_array&, TRigaiva_array&, tiporeg, const bool);
|
||||||
void set_choice_limits(TMask&);
|
void set_choice_limits(TMask&);
|
||||||
void build_ditte_sheet(int flags);
|
void build_ditte_sheet(int flags);
|
||||||
tiporeg cerca_reg(const TString&);
|
tiporeg cerca_reg(const TString&);
|
||||||
|
@ -158,20 +158,18 @@ BEGIN
|
|||||||
GROUP 3
|
GROUP 3
|
||||||
END
|
END
|
||||||
|
|
||||||
LISTBOX FINO_A_MESE 20
|
LISTBOX FINO_A_MESE 10
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 3 9 "Fino al mese "
|
PROMPT 3 9 "Fino al mese "
|
||||||
HELP "Mese fino al quale eseguire la stampa"
|
HELP "Mese fino al quale eseguire la stampa"
|
||||||
ITEM "20|Acconto di dicembre"
|
|
||||||
FLAGS "M"
|
FLAGS "M"
|
||||||
GROUP 1
|
GROUP 1
|
||||||
END
|
END
|
||||||
|
|
||||||
LISTBOX MESE 20
|
LISTBOX MESE 10
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 3 9 "Mese "
|
PROMPT 3 9 "Mese "
|
||||||
HELP "Mese di cui eseguire la stampa"
|
HELP "Mese di cui eseguire la stampa"
|
||||||
ITEM "20|Acconto di dicembre"
|
|
||||||
FLAGS "M"
|
FLAGS "M"
|
||||||
GROUP 2
|
GROUP 2
|
||||||
END
|
END
|
||||||
|
Loading…
x
Reference in New Issue
Block a user