Patch level : 10.1032
Files correlati : sv1.exe Ricompilazione Demo : [ ] Commento : Bug 0001881; Aggiungere ordinamento per ragione sociale nelle statistiche per clien Aggiungere ordinamento per ragione sociale nelle statistiche per cliente git-svn-id: svn://10.65.10.50/branches/R_10_00@22296 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
befc81aeb5
commit
373c6f352b
@ -63,9 +63,9 @@
|
|||||||
#define LARG_COLCODICE 49
|
#define LARG_COLCODICE 49
|
||||||
#define POS_PRIMACOL 51
|
#define POS_PRIMACOL 51
|
||||||
#define PICTURE_VALORI "#.###.###.##@"
|
#define PICTURE_VALORI "#.###.###.##@"
|
||||||
#define LARG_COLVAL 13
|
#define LARG_COLVAL 14
|
||||||
#define PICTURE_QUANTITA "#.###.##@,@##"
|
#define PICTURE_QUANTITA "#.###.##@,@##"
|
||||||
#define LARG_COLQTA 13
|
#define LARG_COLQTA 14
|
||||||
#define PICTURE_PERCENT "###@,@"
|
#define PICTURE_PERCENT "###@,@"
|
||||||
#define LARG_COLPERC 8
|
#define LARG_COLPERC 8
|
||||||
|
|
||||||
@ -1968,6 +1968,8 @@ void TStampa_stat::genera_file(const char *outfn)
|
|||||||
levcode=s_chiave.cell(l,s_chiave.cid2index(S_CAMPO));
|
levcode=s_chiave.cell(l,s_chiave.cid2index(S_CAMPO));
|
||||||
fld=s_chiave.cell(l,s_chiave.cid2index(S_ARTFLD));
|
fld=s_chiave.cell(l,s_chiave.cid2index(S_ARTFLD));
|
||||||
key << get_part(levcode,curr, fld);
|
key << get_part(levcode,curr, fld);
|
||||||
|
if (key.len() > 79)
|
||||||
|
int i = 1;
|
||||||
// setta il range in base all'algoritmo (Valori/progressivi/mobili)
|
// setta il range in base all'algoritmo (Valori/progressivi/mobili)
|
||||||
const int range=(alg==ALG_VALORI ? col : alg==ALG_PROGRESSIVI ? ((1+int(col/_col_anno))*_col_anno-1) : (col+_col_anno-1));
|
const int range=(alg==ALG_VALORI ? col : alg==ALG_PROGRESSIVI ? ((1+int(col/_col_anno))*_col_anno-1) : (col+_col_anno-1));
|
||||||
if (col>=first_col) // periodo da osservare
|
if (col>=first_col) // periodo da osservare
|
||||||
@ -2171,6 +2173,7 @@ const TString& TStampa_stat::get_part(TString & lev_code, TSVriep_record &riepre
|
|||||||
if (t == RIGA_MERCE || t == RIGA_OMAGGI)
|
if (t == RIGA_MERCE || t == RIGA_OMAGGI)
|
||||||
{
|
{
|
||||||
park = cache().get(LF_ANAMAG, rieprec.get(SVR_CODART), fld);
|
park = cache().get(LF_ANAMAG, rieprec.get(SVR_CODART), fld);
|
||||||
|
park.cut(l);
|
||||||
park.rpad(l);
|
park.rpad(l);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -2197,12 +2200,14 @@ const TString& TStampa_stat::get_part(TString & lev_code, TSVriep_record &riepre
|
|||||||
TString8 key;
|
TString8 key;
|
||||||
|
|
||||||
key.format("%c|%ld", rieprec.get_char(SVR_TIPOCF),rieprec.get_long(SVR_CODCF));
|
key.format("%c|%ld", rieprec.get_char(SVR_TIPOCF),rieprec.get_long(SVR_CODCF));
|
||||||
park = cache().get(LF_CLIFO, key, fld);
|
|
||||||
const TRectype clifo(LF_CLIFO);
|
const TRectype clifo(LF_CLIFO);
|
||||||
|
|
||||||
int l = clifo.length(fld);
|
int l = clifo.length(fld);
|
||||||
|
|
||||||
if (l > 40)
|
if (l > 40)
|
||||||
park.rpad(40);
|
l = 40;
|
||||||
|
park = cache().get(LF_CLIFO, key, fld);
|
||||||
|
park.cut(l);
|
||||||
|
park.rpad(l);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case CHR_AGENTE: // agente
|
case CHR_AGENTE: // agente
|
||||||
|
Loading…
x
Reference in New Issue
Block a user