Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : corretta stampa pharmatex git-svn-id: svn://10.65.10.50/trunk@19493 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f4c861d2e5
commit
8576c5520f
@ -36,7 +36,7 @@ TPRSC_recordset::TPRSC_recordset(const TString_array & colnames) : TAS400_record
|
|||||||
// Stampa prospetto scadenze
|
// Stampa prospetto scadenze
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#define NUMERO_FASCE 9
|
#define NUMERO_FASCE 10
|
||||||
// #define LIMITI {0, 30, 60, 90, 120, 150, 180, 210, 240, 270}
|
// #define LIMITI {0, 30, 60, 90, 120, 150, 180, 210, 240, 270}
|
||||||
|
|
||||||
enum tipo_st {clienti=0, fornitori=1};
|
enum tipo_st {clienti=0, fornitori=1};
|
||||||
@ -721,25 +721,25 @@ bool TProspettoScadenze::set_print(int)
|
|||||||
KEY k = _m->run();
|
KEY k = _m->run();
|
||||||
_excel = k != K_ENTER;
|
_excel = k != K_ENTER;
|
||||||
_sfasce = 0;
|
_sfasce = 0;
|
||||||
|
_slimiti[_sfasce++] = 0;
|
||||||
for (short id = F_SCADFASCE1; id <= F_SCADFASCE9; id++)
|
for (short id = F_SCADFASCE1; id <= F_SCADFASCE9; id++)
|
||||||
{
|
{
|
||||||
int nmesi = _m->get_int(id);
|
int nmesi = _m->get_int(id);
|
||||||
|
|
||||||
if (nmesi == 0)
|
if (nmesi == 0)
|
||||||
break;
|
break;
|
||||||
if (_sfasce > 0)
|
nmesi += _slimiti[_sfasce - 1];
|
||||||
nmesi += _slimiti[_sfasce - 1];
|
|
||||||
_slimiti[_sfasce++] = nmesi;
|
_slimiti[_sfasce++] = nmesi;
|
||||||
}
|
}
|
||||||
_nsfasce = 0;
|
_nsfasce = 0;
|
||||||
|
_nslimiti[_nsfasce++] = 0;
|
||||||
for (short id = F_ASCADFASCE1; id <= F_ASCADFASCE9; id++)
|
for (short id = F_ASCADFASCE1; id <= F_ASCADFASCE9; id++)
|
||||||
{
|
{
|
||||||
int nmesi = _m->get_int(id);
|
int nmesi = _m->get_int(id);
|
||||||
|
|
||||||
if (nmesi == 0)
|
if (nmesi == 0)
|
||||||
break;
|
break;
|
||||||
if (_nsfasce > 0)
|
nmesi += _nslimiti[_nsfasce - 1];
|
||||||
nmesi += _nslimiti[_nsfasce - 1];
|
|
||||||
_nslimiti[_nsfasce++] = nmesi;
|
_nslimiti[_nsfasce++] = nmesi;
|
||||||
}
|
}
|
||||||
print = k != K_QUIT;
|
print = k != K_QUIT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user