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
|
||||
mese = f.mask().get_int(MESE);
|
||||
if (id == FINO_A_MESE)
|
||||
{
|
||||
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 (mese == 12)
|
||||
@ -477,10 +470,13 @@ bool TStampa_registri_app::mask_mese (TMask_field& f, KEY k)
|
||||
m.hide (TIPO_RIEPILOGATIVO);
|
||||
m.hide (RIF_VID);
|
||||
}
|
||||
mese = m.get_int(FINO_A_MESE); //Per stampa su bollato
|
||||
if (mese == 20)
|
||||
mese = 12;
|
||||
}
|
||||
if (id == FINO_A_MESE)
|
||||
{
|
||||
if (mese == 12)
|
||||
m.show (TIPO_RIEPILOGATIVO);
|
||||
else m.hide (TIPO_RIEPILOGATIVO);
|
||||
}
|
||||
}
|
||||
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);
|
||||
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);
|
||||
bool ok = false;
|
||||
int last_mese = 13;
|
||||
@ -1642,10 +1633,8 @@ void TStampa_registri_app::set_page_tot_reg()
|
||||
} // for
|
||||
}
|
||||
if (printed)
|
||||
{
|
||||
flush();
|
||||
fine_mese();
|
||||
}
|
||||
if (_stampa_plafonds)
|
||||
stampa_plafonds(rr);
|
||||
}
|
||||
@ -2127,7 +2116,7 @@ bool TStampa_registri_app::print_IVAxCassa(int da_month, int a_month)
|
||||
return false; // Ho stampato qualcosa?
|
||||
}
|
||||
|
||||
int flags = 0x06;
|
||||
int flags = 0x0;
|
||||
FOR_EACH_ARRAY_ITEM(_riga_prospettoXcassa, r, obj)
|
||||
{
|
||||
const TRiga& ri = *(const TRiga*)obj;
|
||||
@ -3764,14 +3753,9 @@ bool TStampa_registri_app::set_print(int n)
|
||||
}
|
||||
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)
|
||||
{
|
||||
|
||||
_fino_a_mese = m.get_int(FINO_A_MESE);
|
||||
_data_da = TDate(1, 1, _annoIVA); // Meglio cosi'
|
||||
}
|
||||
else //stampa su libro unico
|
||||
@ -3787,12 +3771,6 @@ bool TStampa_registri_app::set_print(int n)
|
||||
int giorni_del_mese = 31;
|
||||
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;
|
||||
_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 _numini, _pagine_stampate;
|
||||
int _fino_a_mese, _cod_un_loc;
|
||||
bool _stampa_acconto;
|
||||
int _annoIVA, _r, _stampa_width, _mese_ultima_liq, _mese_credito;
|
||||
int _stampa_len, _stampa_mese, _size_header;
|
||||
real _totale_doc, _credito;
|
||||
@ -121,7 +120,7 @@ public:
|
||||
bool ricalcola(int);
|
||||
bool stampa_riepilogo(int);
|
||||
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 build_ditte_sheet(int flags);
|
||||
tiporeg cerca_reg(const TString&);
|
||||
|
@ -158,20 +158,18 @@ BEGIN
|
||||
GROUP 3
|
||||
END
|
||||
|
||||
LISTBOX FINO_A_MESE 20
|
||||
LISTBOX FINO_A_MESE 10
|
||||
BEGIN
|
||||
PROMPT 3 9 "Fino al mese "
|
||||
HELP "Mese fino al quale eseguire la stampa"
|
||||
ITEM "20|Acconto di dicembre"
|
||||
FLAGS "M"
|
||||
GROUP 1
|
||||
END
|
||||
|
||||
LISTBOX MESE 20
|
||||
LISTBOX MESE 10
|
||||
BEGIN
|
||||
PROMPT 3 9 "Mese "
|
||||
HELP "Mese di cui eseguire la stampa"
|
||||
ITEM "20|Acconto di dicembre"
|
||||
FLAGS "M"
|
||||
GROUP 2
|
||||
END
|
||||
|
Loading…
x
Reference in New Issue
Block a user