Correzioni stampa registri
git-svn-id: svn://10.65.10.50/trunk@1373 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
e89e4dfb78
commit
9d3369e983
216
cg/cg4400.cpp
216
cg/cg4400.cpp
@ -131,7 +131,11 @@ bool CG4400_application::mask_tipo_stampa(TMask_field& f, KEY k)
|
|||||||
{
|
{
|
||||||
int tipo_stampa = m.get_int(TIPO_STAMPA);
|
int tipo_stampa = m.get_int(TIPO_STAMPA);
|
||||||
if (tipo_stampa == 3) //stampa su libro unico
|
if (tipo_stampa == 3) //stampa su libro unico
|
||||||
|
{
|
||||||
m.enable_page(1);
|
m.enable_page(1);
|
||||||
|
TMask_field& cc = f.mask().field(CODICE_LIB_UN);
|
||||||
|
cc.set_dirty();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
m.disable_page(1);
|
m.disable_page(1);
|
||||||
}
|
}
|
||||||
@ -160,7 +164,7 @@ bool CG4400_application::mask_mese (TMask_field& f, KEY k)
|
|||||||
f.mask().hide (TIPO_RIEPILOGATIVO);
|
f.mask().hide (TIPO_RIEPILOGATIVO);
|
||||||
f.mask().hide (RIF_VID);
|
f.mask().hide (RIF_VID);
|
||||||
}
|
}
|
||||||
//TMask_field& cc = f.mask().field(CODICE_LIBRO_IVA);
|
//TMask_field& cc = f.mask().field(CODICE_LIB_UN);
|
||||||
//cc.set_dirty();
|
//cc.set_dirty();
|
||||||
}
|
}
|
||||||
if (id == FINO_A_MESE)
|
if (id == FINO_A_MESE)
|
||||||
@ -197,12 +201,16 @@ bool CG4400_application::look_reg(int i, int anno, TString& codlib, int m, const
|
|||||||
TDate sca_vid = _tabreg->get_date("D1");
|
TDate sca_vid = _tabreg->get_date("D1");
|
||||||
if (codlib != cod_lib_un)
|
if (codlib != cod_lib_un)
|
||||||
{
|
{
|
||||||
if (_selected[i]) message_box("Ditta %ld: il codice libro unico del registro non e' uguale al codice libro unico indicato", ditta);
|
if (_selected.ones() == 1L)
|
||||||
|
if (_selected[i])
|
||||||
|
message_box("Ditta %ld: il codice libro unico del registro non e' uguale al codice libro unico indicato", ditta);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (m < *umese)
|
if (m < *umese)
|
||||||
{
|
{
|
||||||
if (_selected[i]) message_box("Ditta %ld: il mese indicato e' inferiore al mese dell'ultima data di stampa del registro", ditta);
|
if (_selected.ones() == 1L)
|
||||||
|
if (_selected[i])
|
||||||
|
message_box("Ditta %ld: il mese indicato e' inferiore al mese dell'ultima data di stampa del registro", ditta);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (u_data.ok())
|
if (u_data.ok())
|
||||||
@ -212,7 +220,9 @@ bool CG4400_application::look_reg(int i, int anno, TString& codlib, int m, const
|
|||||||
if (sca_vid.ok())
|
if (sca_vid.ok())
|
||||||
if (sca_vid.month() < m)
|
if (sca_vid.month() < m)
|
||||||
{
|
{
|
||||||
if (_selected[i]) message_box("Ditta %ld: la data scadenza di vidimazione del registro non deve essere inferiore al mese indicato", ditta);
|
if (_selected.ones() == 1L)
|
||||||
|
if (_selected[i])
|
||||||
|
message_box("Ditta %ld: la data scadenza di vidimazione del registro non deve essere inferiore al mese indicato", ditta);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -251,13 +261,16 @@ bool CG4400_application::look_regs(int anno, TString& codlib, int m, int* umese,
|
|||||||
if (sca_vid.ok())
|
if (sca_vid.ok())
|
||||||
if (sca_vid.month() < m)
|
if (sca_vid.month() < m)
|
||||||
continue;
|
continue;
|
||||||
if (u_data.ok())
|
int month;
|
||||||
if (u_data.month() < m - 1)
|
if (!u_data.ok())
|
||||||
{
|
month = 0;
|
||||||
app().set_firm(__firm);
|
else month = u_data.month();
|
||||||
*st = FALSE;
|
if (month < m - 1)
|
||||||
return error_box("Ditta %ld: Stampare i registri dei mesi precedenti", ditta);
|
{
|
||||||
}
|
app().set_firm(__firm);
|
||||||
|
*st = FALSE;
|
||||||
|
return error_box("Ditta %ld: Stampare i registri dei mesi precedenti", ditta);
|
||||||
|
}
|
||||||
ok = TRUE;
|
ok = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -274,7 +287,13 @@ bool CG4400_application::mask_libun (TMask_field& f, KEY k)
|
|||||||
{
|
{
|
||||||
TString16 cod(f.mask().get(CODICE_LIBRO_IVA));
|
TString16 cod(f.mask().get(CODICE_LIBRO_IVA));
|
||||||
TString16 codlib(f.mask().get(CODICE_LIB_UN));
|
TString16 codlib(f.mask().get(CODICE_LIB_UN));
|
||||||
|
//modifica del 26/04/1995
|
||||||
|
if (codlib.empty())
|
||||||
|
{
|
||||||
|
app()._test = TRUE;
|
||||||
|
return f.error_box("Inserire il codice del libro unico");
|
||||||
|
}
|
||||||
|
//fine modifica
|
||||||
int fino_a_mese = f.mask().get_int(MESE);
|
int fino_a_mese = f.mask().get_int(MESE);
|
||||||
int anno = f.mask().get_int(ANNO);
|
int anno = f.mask().get_int(ANNO);
|
||||||
bool ok = FALSE;
|
bool ok = FALSE;
|
||||||
@ -297,11 +316,12 @@ bool CG4400_application::mask_libun (TMask_field& f, KEY k)
|
|||||||
{
|
{
|
||||||
//modifica del 21/04/1995 suggerita da Cinzia!!!
|
//modifica del 21/04/1995 suggerita da Cinzia!!!
|
||||||
if (app()._selected.ones() == 1L) //solo se ho selezionato 1 ditta devo dare il messaggio
|
if (app()._selected.ones() == 1L) //solo se ho selezionato 1 ditta devo dare il messaggio
|
||||||
//if (app()._selected[i]) f.message_box("Ditta %ld: il registro %s non soddisfa i parametri indicati", ditta, (const char*)cod);
|
if (app()._selected[i])
|
||||||
f.message_box("Ditta %ld: il registro %s non soddisfa i parametri indicati", ditta, (const char*)cod);
|
f.message_box("Ditta %ld: il registro %s non soddisfa i parametri indicati", ditta, (const char*)cod);
|
||||||
else continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (mese != 0 && mese < fino_a_mese - 1) //indipendentemente se si tratta di una ditta selezionata oppure no
|
//if (mese != 0 && mese < fino_a_mese - 1) //indipendentemente se si tratta di una ditta selezionata oppure no
|
||||||
|
if (mese < fino_a_mese - 1) //indipendentemente se si tratta di una ditta selezionata oppure no
|
||||||
{
|
{
|
||||||
app().set_firm(app().__firm);
|
app().set_firm(app().__firm);
|
||||||
can_print = FALSE;
|
can_print = FALSE;
|
||||||
@ -316,9 +336,9 @@ bool CG4400_application::mask_libun (TMask_field& f, KEY k)
|
|||||||
{
|
{
|
||||||
if (!can_print)
|
if (!can_print)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
//if ( app()._selected[i])
|
|
||||||
if (app()._selected.ones() == 1L) //solo se ho selezionato 1 ditta devo dare il messaggio
|
if (app()._selected.ones() == 1L) //solo se ho selezionato 1 ditta devo dare il messaggio
|
||||||
f.message_box("Ditta %ld: nessun registro soddisfa i parametri indicati", ditta);
|
if (app()._selected[i])
|
||||||
|
f.message_box("Ditta %ld: nessun registro soddisfa i parametri indicati", ditta);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -339,23 +359,15 @@ bool CG4400_application::mask_libun (TMask_field& f, KEY k)
|
|||||||
|
|
||||||
bool CG4400_application::mask_cod (TMask_field& f, KEY k)
|
bool CG4400_application::mask_cod (TMask_field& f, KEY k)
|
||||||
{
|
{
|
||||||
TTable TabLbu ("%LBU");
|
|
||||||
TString codtab;
|
|
||||||
int anno;
|
|
||||||
|
|
||||||
if (k == K_ENTER)
|
|
||||||
{
|
|
||||||
TString16 codlib(f.get());
|
|
||||||
if (codlib.empty())
|
|
||||||
return f.warning_box("Inserire il codice del libro unico");
|
|
||||||
}
|
|
||||||
|
|
||||||
//if (k == K_TAB || f.focusdirty())
|
//if (k == K_TAB || f.focusdirty())
|
||||||
if (k == K_TAB)
|
if (k == K_TAB)
|
||||||
{
|
{
|
||||||
TString16 codlib(f.mask().get(CODICE_LIB_UN));
|
TTable TabLbu ("%LBU");
|
||||||
anno = f.mask().get_int(ANNO);
|
TString codtab;
|
||||||
|
int anno;
|
||||||
|
|
||||||
|
TString16 codlib(f.get());
|
||||||
|
anno = f.mask().get_int(ANNO);
|
||||||
TabLbu.zero();
|
TabLbu.zero();
|
||||||
codtab.format ("%04d%-3s", anno, (const char*)codlib);
|
codtab.format ("%04d%-3s", anno, (const char*)codlib);
|
||||||
TabLbu.put ("CODTAB", codtab);
|
TabLbu.put ("CODTAB", codtab);
|
||||||
@ -366,6 +378,13 @@ bool CG4400_application::mask_cod (TMask_field& f, KEY k)
|
|||||||
f.mask().set(ULTIMA_PAGINA,TabLbu.get_long("I1"));
|
f.mask().set(ULTIMA_PAGINA,TabLbu.get_long("I1"));
|
||||||
app()._codice_vidi = TabLbu.get("S4");
|
app()._codice_vidi = TabLbu.get("S4");
|
||||||
}
|
}
|
||||||
|
//modifica del 26/04/1995
|
||||||
|
if (app()._test)
|
||||||
|
{
|
||||||
|
f.mask().send_key(K_TAB, CODICE_LIBRO_IVA);
|
||||||
|
app()._test = FALSE;
|
||||||
|
}
|
||||||
|
//fine modifica
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
@ -643,16 +662,16 @@ void CG4400_application::build_nomiditte(TProgind* pnd)
|
|||||||
|
|
||||||
_nomiditte.add(d);
|
_nomiditte.add(d);
|
||||||
}
|
}
|
||||||
if (pnd) pnd->addstatus(1);
|
//if (pnd) pnd->addstatus(1);
|
||||||
//TApplication::set_firm(__firm);
|
//TApplication::set_firm(__firm);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CG4400_application::user_create()
|
bool CG4400_application::user_create()
|
||||||
{
|
{
|
||||||
TProgind* pnd = NULL;
|
//TProgind* pnd = NULL;
|
||||||
|
|
||||||
pnd = new TProgind (2,"Preparazione archivi\nPrego attendere",
|
//pnd = new TProgind (2,"Preparazione archivi\nPrego attendere",
|
||||||
FALSE, TRUE, 30);
|
// FALSE, TRUE, 30);
|
||||||
|
|
||||||
_com = new TLocalisamfile(LF_COMUNI);
|
_com = new TLocalisamfile(LF_COMUNI);
|
||||||
_anag = new TLocalisamfile(LF_ANAG);
|
_anag = new TLocalisamfile(LF_ANAG);
|
||||||
@ -684,7 +703,7 @@ bool CG4400_application::user_create()
|
|||||||
_ditte = new TArray_sheet(-1, -1, 0, 0, "Selezione Ditte",
|
_ditte = new TArray_sheet(-1, -1, 0, 0, "Selezione Ditte",
|
||||||
"@1|Cod.@5R|Ragione Sociale@50|Vers.");
|
"@1|Cod.@5R|Ragione Sociale@50|Vers.");
|
||||||
|
|
||||||
if (pnd) pnd->addstatus(1);
|
//if (pnd) pnd->addstatus(1);
|
||||||
|
|
||||||
_n_ditte = 0l;
|
_n_ditte = 0l;
|
||||||
__firm = TApplication::get_firm();
|
__firm = TApplication::get_firm();
|
||||||
@ -692,16 +711,14 @@ bool CG4400_application::user_create()
|
|||||||
TDate oggi(TODAY);
|
TDate oggi(TODAY);
|
||||||
_annoes = oggi.year();
|
_annoes = oggi.year();
|
||||||
|
|
||||||
build_nomiditte(pnd);
|
build_nomiditte();
|
||||||
build_ditte_sheet();
|
build_ditte_sheet();
|
||||||
|
|
||||||
//if (pnd) pnd->addstatus(1);
|
|
||||||
|
|
||||||
add_cursor(_cur);
|
add_cursor(_cur);
|
||||||
add_file(LF_MOV);
|
add_file(LF_MOV);
|
||||||
add_file(LF_RMOVIVA);
|
add_file(LF_RMOVIVA);
|
||||||
|
|
||||||
delete pnd;
|
//delete pnd;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
@ -1165,9 +1182,9 @@ int CG4400_application::stampa_prospetto()
|
|||||||
{
|
{
|
||||||
TTipodoc& doc = (TTipodoc&)_doc_array[j];
|
TTipodoc& doc = (TTipodoc&)_doc_array[j];
|
||||||
rr = r+j;
|
rr = r+j;
|
||||||
set_row(rr, "%2s", (const char*) doc._tipodoc);
|
set_row(rr, "%2s", (const char*) doc._tipodoc);
|
||||||
set_row(rr, "@3g%s", (const char*) doc._descrdoc);
|
set_row(rr, "@3g%s", (const char*) doc._descrdoc);
|
||||||
set_row(rr, "@54g%r", &doc._totdoc);
|
set_row(rr, "@54g%r", &doc._totdoc);
|
||||||
}
|
}
|
||||||
_doc_array.destroy();
|
_doc_array.destroy();
|
||||||
}
|
}
|
||||||
@ -1861,40 +1878,6 @@ bool CG4400_application::preprocess_page(int file, int counter)
|
|||||||
|
|
||||||
_datareg = mov.get_date(MOV_DATAREG);
|
_datareg = mov.get_date(MOV_DATAREG);
|
||||||
|
|
||||||
/*
|
|
||||||
if (_tipo_stampa != 3 && _liquidazione)
|
|
||||||
{
|
|
||||||
int da;
|
|
||||||
if (_tipo_stampa == 1)
|
|
||||||
da = _data_da.month();
|
|
||||||
else da = 1;
|
|
||||||
int a = _datareg.month();
|
|
||||||
for (int m = da; m < a; m++)
|
|
||||||
{
|
|
||||||
if (!_st_liq[m])
|
|
||||||
if (stampo_liquidazione(m))
|
|
||||||
{
|
|
||||||
_datareg = format("01/%02d/%4d", m, _annoes); //serve per la preprocess_header (intestazione per la stampa liquidazione)
|
|
||||||
TFilename t;
|
|
||||||
t.temp("reg");
|
|
||||||
if (_tipo_stampa == 1)
|
|
||||||
send_message('S', t, m);
|
|
||||||
else send_message('s', t, m);
|
|
||||||
TString80 nomef; nomef = t.path(); nomef << "\\" << t.name();
|
|
||||||
if (fexist(nomef))
|
|
||||||
{
|
|
||||||
_intesta_liq = TRUE;
|
|
||||||
merge_export_file(t,FALSE,TRUE);
|
|
||||||
printer().formfeed();
|
|
||||||
_intesta_liq = FALSE;
|
|
||||||
reset_print();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
_st_liq[m] = TRUE;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (_tipo_stampa != 3 && _liquidazione)
|
if (_tipo_stampa != 3 && _liquidazione)
|
||||||
{
|
{
|
||||||
int da;
|
int da;
|
||||||
@ -1932,10 +1915,7 @@ bool CG4400_application::preprocess_page(int file, int counter)
|
|||||||
printer().formfeed();
|
printer().formfeed();
|
||||||
_intesta_liq = FALSE;
|
_intesta_liq = FALSE;
|
||||||
reset_print();
|
reset_print();
|
||||||
<<<<<<< cg4400.cpp
|
fremove(t);
|
||||||
=======
|
|
||||||
remove(t);
|
|
||||||
>>>>>>> 1.57
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_st_liq[m] = TRUE;
|
_st_liq[m] = TRUE;
|
||||||
@ -2021,7 +2001,7 @@ bool CG4400_application::preprocess_page(int file, int counter)
|
|||||||
|
|
||||||
_tipodoc = mov.get(MOV_TIPODOC);
|
_tipodoc = mov.get(MOV_TIPODOC);
|
||||||
_descr_doc = descr_doc();
|
_descr_doc = descr_doc();
|
||||||
TString app = datadoc.string(2, '/');
|
TString app(datadoc.string(brief, '/'));
|
||||||
|
|
||||||
if (stampa_totali_finali())
|
if (stampa_totali_finali())
|
||||||
_doc_array.add_riga(_tipodoc,_descr_doc,totdoc);
|
_doc_array.add_riga(_tipodoc,_descr_doc,totdoc);
|
||||||
@ -2029,7 +2009,7 @@ bool CG4400_application::preprocess_page(int file, int counter)
|
|||||||
//setto le righe di stampa
|
//setto le righe di stampa
|
||||||
_r = 1;
|
_r = 1;
|
||||||
if (!_stampa_data_reg)
|
if (!_stampa_data_reg)
|
||||||
set_row(_r, "%s", (const char*) _datareg.string(2, '/'));
|
set_row(_r, "%s", (const char* ) _datareg.string(brief, '/'));
|
||||||
set_row(_r, "@9g%5ld", protiva);
|
set_row(_r, "@9g%5ld", protiva);
|
||||||
if (datadoc.ok())
|
if (datadoc.ok())
|
||||||
set_row(_r, "@15g%s", (const char*) app);
|
set_row(_r, "@15g%s", (const char*) app);
|
||||||
@ -2437,10 +2417,7 @@ void CG4400_application::liq_b0_settato()
|
|||||||
printer().footerlen(0);
|
printer().footerlen(0);
|
||||||
merge_export_file(f,FALSE,TRUE);
|
merge_export_file(f,FALSE,TRUE);
|
||||||
_intesta_liq = FALSE;
|
_intesta_liq = FALSE;
|
||||||
<<<<<<< cg4400.cpp
|
fremove(f);
|
||||||
=======
|
|
||||||
remove(f);
|
|
||||||
>>>>>>> 1.57
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2448,10 +2425,20 @@ void CG4400_application::liq_other_case()
|
|||||||
{
|
{
|
||||||
if (_scelta == prosegui_cal_stampa)
|
if (_scelta == prosegui_cal_stampa)
|
||||||
{
|
{
|
||||||
_t.temp("reg");
|
if (stampo_liquidazione(_datareg.month()))
|
||||||
if (_tipo_stampa == 1)
|
{
|
||||||
send_message('L', _t, _datareg.month());
|
_t.temp("reg");
|
||||||
else send_message('l', _t, _datareg.month());
|
if (_tipo_stampa == 1)
|
||||||
|
send_message('L', _t, _datareg.month());
|
||||||
|
else send_message('l', _t, _datareg.month());
|
||||||
|
}
|
||||||
|
else //se chiamo la liquidazione con L o l mi calcola anche i progressivi
|
||||||
|
if (_tipo_stampa != 1)
|
||||||
|
{
|
||||||
|
TFilename app;
|
||||||
|
app.temp();
|
||||||
|
send_message('C', app, _datareg.month());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (_scelta == prosegui_stampa)
|
if (_scelta == prosegui_stampa)
|
||||||
{
|
{
|
||||||
@ -2462,11 +2449,14 @@ void CG4400_application::liq_other_case()
|
|||||||
send_message('S', _t, _datareg.month());
|
send_message('S', _t, _datareg.month());
|
||||||
else send_message('s', _t, _datareg.month());
|
else send_message('s', _t, _datareg.month());
|
||||||
}
|
}
|
||||||
TFilename app;
|
if (_tipo_stampa != 1) //in stampa di prova i progressivi me li calcolo io!!!
|
||||||
app.temp();
|
{ //Why???
|
||||||
send_message('C', app, _datareg.month());
|
TFilename app;
|
||||||
|
app.temp();
|
||||||
|
send_message('C', app, _datareg.month());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (_scelta == no_liquidazione)
|
if (_scelta == no_liquidazione && _tipo_stampa != 1)
|
||||||
{
|
{
|
||||||
TFilename app;
|
TFilename app;
|
||||||
app.temp();
|
app.temp();
|
||||||
@ -2496,12 +2486,9 @@ print_action CG4400_application::postprocess_page (int file, int counter)
|
|||||||
printer().footerlen(0);
|
printer().footerlen(0);
|
||||||
merge_export_file(_t,FALSE,TRUE);
|
merge_export_file(_t,FALSE,TRUE);
|
||||||
_intesta_liq = FALSE;
|
_intesta_liq = FALSE;
|
||||||
<<<<<<< cg4400.cpp
|
fremove(_t);
|
||||||
=======
|
|
||||||
remove(_t);
|
|
||||||
>>>>>>> 1.57
|
|
||||||
}
|
}
|
||||||
_t = NULL;
|
//_t = NULL; Come ho potuto scrivere cio?!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2752,18 +2739,14 @@ void CG4400_application::no_movimenti()
|
|||||||
printer().footerlen(0);
|
printer().footerlen(0);
|
||||||
merge_export_file(f,FALSE,TRUE);
|
merge_export_file(f,FALSE,TRUE);
|
||||||
printer().formfeed();
|
printer().formfeed();
|
||||||
<<<<<<< cg4400.cpp
|
|
||||||
_intesta_liq = FALSE;
|
_intesta_liq = FALSE;
|
||||||
=======
|
fremove(f);
|
||||||
_intesta_liq = FALSE;
|
|
||||||
remove(f);
|
|
||||||
>>>>>>> 1.57
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (printer().isopen()) printer().close();
|
if (printer().isopen()) printer().close();
|
||||||
}
|
}
|
||||||
scrivi_reg(); //aggiorno il registro anche se non ho stampato proprio nulla per quel mese!
|
if (_tipo_stampa != 1) scrivi_reg(); //aggiorno il registro anche se non ho stampato proprio nulla per quel mese!
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CG4400_application::stampa_registri_IVA(const TMask& m)
|
bool CG4400_application::stampa_registri_IVA(const TMask& m)
|
||||||
@ -2896,6 +2879,7 @@ bool CG4400_application::stampa_registri_IVA(const TMask& m)
|
|||||||
_stampa_mese = 13;
|
_stampa_mese = 13;
|
||||||
_scelta = controlla_b0(); //sul registro non va stampata la liq. ma comunque
|
_scelta = controlla_b0(); //sul registro non va stampata la liq. ma comunque
|
||||||
//va richiamata per il calcolo progressivi (a seconda di b0)
|
//va richiamata per il calcolo progressivi (a seconda di b0)
|
||||||
|
//se non e' stampa di prova
|
||||||
ok = setta_mask(i);
|
ok = setta_mask(i);
|
||||||
if (!ok) continue;
|
if (!ok) continue;
|
||||||
|
|
||||||
@ -2936,8 +2920,8 @@ bool CG4400_application::stampa_registri_IVA(const TMask& m)
|
|||||||
}
|
}
|
||||||
} //for
|
} //for
|
||||||
if (msg)
|
if (msg)
|
||||||
//if ( (_tipo_stampa != 3) || (_tipo_stampa == 3 && _fino_a_mese == 1) ) //il messaggio seguente, nel caso di stampa su libro unico,
|
//if ( (_tipo_stampa != 3) || (_tipo_stampa == 3 && _fino_a_mese == 1) )
|
||||||
if ( (_tipo_stampa != 3) || (_tipo_stampa == 3 && _fino_a_mese == 1 && _selected.ones() == 1L) ) //il messaggio seguente, nel caso di stampa su libro unico,
|
if ( (_tipo_stampa != 3) || (_tipo_stampa == 3 && _fino_a_mese == 1 && _selected.ones() == 1L) ) //il messaggio seguente, nel caso di stampa su libro unico,
|
||||||
message_box("Ditta %ld: nessun registro soddisfa i parametri indicati", _ditta); //viene gia' dato nell'handler (che scatta pero' se il mese di
|
message_box("Ditta %ld: nessun registro soddisfa i parametri indicati", _ditta); //viene gia' dato nell'handler (che scatta pero' se il mese di
|
||||||
} //stampa e' diverso da gennaio
|
} //stampa e' diverso da gennaio
|
||||||
}
|
}
|
||||||
@ -2961,8 +2945,8 @@ void CG4400_application::stampa_liq_mesi_succ()
|
|||||||
TFilename t;
|
TFilename t;
|
||||||
t.temp("iva");
|
t.temp("iva");
|
||||||
if (_tipo_stampa == 1)
|
if (_tipo_stampa == 1)
|
||||||
send_message('S',t, m);
|
send_message('L',t, m); //prima era S ma non andava bene!
|
||||||
else send_message('s',t,m);
|
else send_message('l',t,m); //prima era s
|
||||||
//TString80 nomef; nomef = t.path(); nomef << "\\" << t.name();
|
//TString80 nomef; nomef = t.path(); nomef << "\\" << t.name();
|
||||||
//if (fexist(nomef))
|
//if (fexist(nomef))
|
||||||
if (fexist(t))
|
if (fexist(t))
|
||||||
@ -2971,12 +2955,8 @@ void CG4400_application::stampa_liq_mesi_succ()
|
|||||||
if (m > da) printer().formfeed();
|
if (m > da) printer().formfeed();
|
||||||
printer().footerlen(0);
|
printer().footerlen(0);
|
||||||
merge_export_file(t,FALSE,TRUE);
|
merge_export_file(t,FALSE,TRUE);
|
||||||
<<<<<<< cg4400.cpp
|
|
||||||
_intesta_liq = FALSE;
|
_intesta_liq = FALSE;
|
||||||
=======
|
fremove(t);
|
||||||
_intesta_liq = FALSE;
|
|
||||||
remove(t);
|
|
||||||
>>>>>>> 1.57
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2988,10 +2968,10 @@ void CG4400_application::send_message(char tipo, const TFilename& nome, int mese
|
|||||||
const char* app;
|
const char* app;
|
||||||
|
|
||||||
if (tipo == 'S' || tipo == 's')
|
if (tipo == 'S' || tipo == 's')
|
||||||
app = "cg4 -2 -S";
|
app = "cg4a -2 -S";
|
||||||
else if (tipo == 'C')
|
else if (tipo == 'C')
|
||||||
app = "cg4 -2 -C";
|
app = "cg4a -2 -C";
|
||||||
else app = "cg4 -2";
|
else app = "cg4a -2";
|
||||||
|
|
||||||
TToken_string ss(10);
|
TToken_string ss(10);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user