Controllo della data di registrazione rispetto alla data di stampa del libro
giornale dell'esercizio corrispondente. git-svn-id: svn://10.65.10.50/trunk@220 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
5053839767
commit
2442a6edf3
@ -831,13 +831,12 @@ bool TPrimanota_application::datareg_handler(TMask_field& f, KEY key)
|
|||||||
if (f.dirty() || f.mask().query_mode())
|
if (f.dirty() || f.mask().query_mode())
|
||||||
{
|
{
|
||||||
const TLibro_giornale& gio = app().giornale();
|
const TLibro_giornale& gio = app().giornale();
|
||||||
const TDate ljp(gio.global_last_print());
|
if (dr <= gio.last_print())
|
||||||
if (dr <= ljp)
|
return f.error_box("La data dell'operazione e' antecedente al %s, ultima stampa\n"
|
||||||
return f.error_box("La data dell'operazione e' antecedente alla data\n"
|
"del libro giornale dell'esercizio %d", gio.last_reg().string(), ae);
|
||||||
"dell'ultima stampa del libro giornale: %s", ljp.string());
|
|
||||||
if (dr < gio.last_reg())
|
if (dr < gio.last_reg())
|
||||||
warning_box("La data dell'operazione e' antecedente al %s, ultima registrazione\n"
|
warning_box("La data dell'operazione e' antecedente al %s, ultima registrazione\n"
|
||||||
"sul libro giornale del %d",
|
"sul libro giornale dell'esercizio %d",
|
||||||
gio.last_reg().string(), ae);
|
gio.last_reg().string(), ae);
|
||||||
|
|
||||||
if (m.query_mode())
|
if (m.query_mode())
|
||||||
|
@ -46,13 +46,13 @@ HIDDEN int compare(const TObject** o1, const TObject** o2)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
bool CG4400_application::libro_giornale_iva_unico()
|
bool CG4400_application::libro_giornale_iva_unico()
|
||||||
{
|
{
|
||||||
TConfig conf(CONFIG_DITTA);
|
TConfig conf(CONFIG_DITTA);
|
||||||
|
|
||||||
return conf.get("StLgiU") == "X";
|
return conf.get("StLgiU") == "X";
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
bool mask_select (TMask_field& f, KEY k)
|
bool mask_select (TMask_field& f, KEY k)
|
||||||
{
|
{
|
||||||
@ -224,8 +224,8 @@ bool mask_data (TMask_field& f, KEY k)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
bool mask_fino_a_mese (TMask_field& f, KEY k)
|
bool mask_fino_a_mese (TMask_field& f, KEY k)
|
||||||
{
|
{
|
||||||
if (k == K_ENTER)
|
if (k == K_ENTER)
|
||||||
{
|
{
|
||||||
TTable TabReg ("REG");
|
TTable TabReg ("REG");
|
||||||
@ -290,8 +290,8 @@ bool mask_fino_a_mese (TMask_field& f, KEY k)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//da una SHEET non e' possibile mandare messaggi nella maschera!!!
|
//da una SHEET non e' possibile mandare messaggi nella maschera!!!
|
||||||
HIDDEN bool my_handler (TMask_field& f, KEY k)
|
HIDDEN bool my_handler (TMask_field& f, KEY k)
|
||||||
@ -682,8 +682,8 @@ void CG4400_application::cerca_reg(const TString& c, byte& t, TDate& d)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
bool CG4400_application::controlla_mov()
|
bool CG4400_application::controlla_mov()
|
||||||
{
|
{
|
||||||
bool ok = TRUE;
|
bool ok = TRUE;
|
||||||
|
|
||||||
if (_stampa_tutti_i_registri)
|
if (_stampa_tutti_i_registri)
|
||||||
@ -705,10 +705,10 @@ bool CG4400_application::controlla_mov()
|
|||||||
leggi_movimenti(_data_da, _codreg, ok);
|
leggi_movimenti(_data_da, _codreg, ok);
|
||||||
|
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CG4400_application::leggi_movimenti(const TDate& d, const TString& cod, bool& ok)
|
void CG4400_application::leggi_movimenti(const TDate& d, const TString& cod, bool& ok)
|
||||||
{
|
{
|
||||||
TLocalisamfile mov (LF_MOV);
|
TLocalisamfile mov (LF_MOV);
|
||||||
bool stampato;
|
bool stampato;
|
||||||
long numreg;
|
long numreg;
|
||||||
@ -733,8 +733,8 @@ void CG4400_application::leggi_movimenti(const TDate& d, const TString& cod, boo
|
|||||||
}
|
}
|
||||||
mov.next();
|
mov.next();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void CG4400_application::set_page_tot_reg()
|
void CG4400_application::set_page_tot_reg()
|
||||||
{
|
{
|
||||||
@ -1492,7 +1492,7 @@ bool CG4400_application::set_ditte(TMask& m)
|
|||||||
|
|
||||||
tasto = m.run();
|
tasto = m.run();
|
||||||
|
|
||||||
// m.first_focus(tasto);
|
// m.first_focus(tasto);
|
||||||
|
|
||||||
return tasto == K_ENTER;
|
return tasto == K_ENTER;
|
||||||
}
|
}
|
||||||
@ -1528,7 +1528,7 @@ void CG4400_application::preprocess_header()
|
|||||||
_datareg.year());
|
_datareg.year());
|
||||||
else data.format("%s %s %d", (const char*)"mese di", itom(_fino_a_mese), _annoes);
|
else data.format("%s %s %d", (const char*)"mese di", itom(_fino_a_mese), _annoes);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
data = _data_da.string();
|
data = _data_da.string();
|
||||||
|
|
||||||
reset_header();
|
reset_header();
|
||||||
@ -1577,7 +1577,7 @@ void CG4400_application::preprocess_header()
|
|||||||
set_header(r, "@128gNum.");
|
set_header(r, "@128gNum.");
|
||||||
r++;
|
r++;
|
||||||
set_header(r, "Data reg. prot.@17gData@25gNumero Codice Ragione sociale/descrizione@68gO Doc.@76gTotale doc.@91gImponibile Iva %s@112gImposta@124g%s",
|
set_header(r, "Data reg. prot.@17gData@25gNumero Codice Ragione sociale/descrizione@68gO Doc.@76gTotale doc.@91gImponibile Iva %s@112gImposta@124g%s",
|
||||||
(const char*) nd2, (const char*) cor);
|
(const char*) nd2, (const char*) cor);
|
||||||
if (_tipo_stampa == 4)
|
if (_tipo_stampa == 4)
|
||||||
set_header(r, "@128gop.");
|
set_header(r, "@128gop.");
|
||||||
r++;
|
r++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user