diff --git a/cg/cg4100.cpp b/cg/cg4100.cpp index 43a493c48..b4567ea4b 100755 --- a/cg/cg4100.cpp +++ b/cg/cg4100.cpp @@ -41,7 +41,7 @@ struct therec { char DATAREG[9]; char REG[4]; char DATADOC[9]; - char NUMDOC[7]; + char NUMPROT[7]; char ANNOES[5]; char NUMREG[8]; }; @@ -219,8 +219,9 @@ bool CG4100_App::sort_mov() sort.addsortkey(rbuf.DATAREG - (char*)&rbuf, 8); sort.addsortkey(rbuf.REG - (char*)&rbuf, 3); - sort.addsortkey(rbuf.NUMDOC - (char*)&rbuf, 6); + sort.addsortkey(rbuf.NUMPROT - (char*)&rbuf, 6); sort.addsortkey(rbuf.DATADOC - (char*)&rbuf, 8); + sort.addsortkey(rbuf.NUMREG - (char*)&rbuf, 7); sort.init(); @@ -236,7 +237,7 @@ bool CG4100_App::sort_mov() strcpy(rbuf.DATAREG, d.string(ANSI)); strcpy(rbuf.REG, mov.get(MOV_REG)); d = mov.get(MOV_DATADOC); - strcpy(rbuf.NUMDOC, mov.get(MOV_NUMDOC)); + strcpy(rbuf.NUMPROT, mov.get(MOV_PROTIVA)); strcpy(rbuf.DATADOC, d.string(ANSI)); strcpy(rbuf.ANNOES, mov.get(MOV_ANNOES)); strcpy(rbuf.NUMREG, mov.get(MOV_NUMREG));