Corretta funzione di ricerca esercizi.
git-svn-id: svn://10.65.10.50/trunk@231 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
4e053141b7
commit
c54566df77
@ -499,7 +499,7 @@ bool CG0200_application::indsp_handler(TMask_field& f, KEY key)
|
||||
{
|
||||
TArray& righe=app().indsp_sheet().rows_array();
|
||||
int n=righe.items();
|
||||
reset_sheet();
|
||||
app().reset_sheet();
|
||||
// Rebuild Sheets
|
||||
for (int i=0; i<n; i++)
|
||||
{
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <stdlib.h>
|
||||
#include <xvtmacro.h>
|
||||
|
||||
#include <tabutil.h>
|
||||
@ -20,7 +21,7 @@ int date2esc(const TDate& d, int* prevesc)
|
||||
{
|
||||
const TDate ia(esc.get("D0")); // Data inizio esercizio
|
||||
const TDate fa(esc.get("D1")); // Data fine esercizio
|
||||
TString16 sanno(esc.get_int("CODTAB")); sanno.cut(4);
|
||||
TString16 sanno(esc.get("CODTAB")); sanno.cut(4);
|
||||
const int anno = atoi(sanno);
|
||||
if (d >= ia && d <= fa)
|
||||
return anno;
|
||||
|
Loading…
x
Reference in New Issue
Block a user