From e012ca37e9f464eaf4322cc1cc1de3e879ca48ba Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 21 Jun 2011 10:16:11 +0000 Subject: [PATCH] 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@22294 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- sv/sv1200.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/sv/sv1200.cpp b/sv/sv1200.cpp index eae8f99f4..6e8e31a5a 100755 --- a/sv/sv1200.cpp +++ b/sv/sv1200.cpp @@ -62,10 +62,10 @@ #define LARG_COLCODICE 49 #define POS_PRIMACOL 51 -#define PICTURE_VALORI "###.###.###.##@" -#define LARG_COLVAL 16 -#define PICTURE_QUANTITA "###.###.##@,@##" -#define LARG_COLQTA 16 +#define PICTURE_VALORI "#.###.###.##@" +#define LARG_COLVAL 13 +#define PICTURE_QUANTITA "#.###.##@,@##" +#define LARG_COLQTA 13 #define PICTURE_PERCENT "###@,@" #define LARG_COLPERC 8 @@ -2163,17 +2163,14 @@ const TString& TStampa_stat::get_part(TString & lev_code, TSVriep_record &riepre case CHR_ARTFIELD: // campo dell' anagrafica articolo { const char t = rieprec.get_char(SVR_TIPOART); - TFieldref f; + const TRectype anamag(LF_ANAMAG); + int l = anamag.length(fld); - f = fld; - const TRectype anamag(LF_ANAMAG); - int l = f.len(anamag); if (l > 40) l = 40; if (t == RIGA_MERCE || t == RIGA_OMAGGI) { - const TRectype & rec = cache().get(LF_ANAMAG, rieprec.get(SVR_CODART)); - park = f.read(rec); + park = cache().get(LF_ANAMAG, rieprec.get(SVR_CODART), fld); park.rpad(l); } else @@ -2201,8 +2198,11 @@ const TString& TStampa_stat::get_part(TString & lev_code, TSVriep_record &riepre key.format("%c|%ld", rieprec.get_char(SVR_TIPOCF),rieprec.get_long(SVR_CODCF)); park = cache().get(LF_CLIFO, key, fld); - if (park.len() > 40) - park.rtrim(40); + const TRectype clifo(LF_CLIFO); + + int l = clifo.length(fld); + if (l > 40) + park.rpad(40); } break; case CHR_AGENTE: // agente