Agregar coprrp001 (Catalogo Suplidores) y corregir bugs en coprcs009
- Registrar coprrp001/cofmrp001 en mbsERP.4pw - Sustituir API fgl_report_* no disponible por XmlWriter en coprrp001.4gl - Ampliar cs_ordena.codigo a CHAR(20) en coprgb000.4gl - Corregir mascaras PICTURE de codigo en coprcs009.4gl - Ampliar campo c1 en cofmcs009.per para igualar el ancho de codigo - Corregir typo de base de datos en cofmwd016.per Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
b7877d7c07
commit
a37d0336b5
@@ -1,4 +1,4 @@
|
|||||||
database marmotech
|
database smarmotech
|
||||||
screen size 24 by 80
|
screen size 24 by 80
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -9,10 +9,10 @@ screen size 24 by 80
|
|||||||
\g-----------------------------------------------------------------------------\g
|
\g-----------------------------------------------------------------------------\g
|
||||||
Requi. Codigo Cantidad Precio Valor
|
Requi. Codigo Cantidad Precio Valor
|
||||||
\g-----------------------------------------------------------------------------\g
|
\g-----------------------------------------------------------------------------\g
|
||||||
[r1 ][c1 ][c2 ] [p1 ][v1 ]
|
[r1 ][c1 ][c2 ] [p1 ][v1 ]
|
||||||
[r1 ][c1 ][c2 ] [p1 ][v1 ]
|
[r1 ][c1 ][c2 ] [p1 ][v1 ]
|
||||||
[r1 ][c1 ][c2 ] [p1 ][v1 ]
|
[r1 ][c1 ][c2 ] [p1 ][v1 ]
|
||||||
[r1 ][c1 ][c2 ] [p1 ][v1 ]
|
[r1 ][c1 ][c2 ] [p1 ][v1 ]
|
||||||
Descripcion [d1 ]
|
Descripcion [d1 ]
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
DATABASE marmotech
|
DATABASE smarmotech
|
||||||
screen
|
screen
|
||||||
{
|
{
|
||||||
Ship To [st ]
|
Ship To [st ]
|
||||||
|
|||||||
@@ -243,10 +243,10 @@ LET idx = 1
|
|||||||
FOREACH buscate INTO detalle1.*
|
FOREACH buscate INTO detalle1.*
|
||||||
|
|
||||||
LET cs_ordena[idx].num_req = detalle1.num_req
|
LET cs_ordena[idx].num_req = detalle1.num_req
|
||||||
LET cs_ordena[idx].codigo = detalle1.cod_n using "&","-",
|
LET cs_ordena[idx].codigo = detalle1.cod_n using "##","-",
|
||||||
detalle1.cod_grupo using "&","-",
|
detalle1.cod_grupo using "####","-",
|
||||||
detalle1.cod_tipo using "&&","-",
|
detalle1.cod_tipo using "####","-",
|
||||||
detalle1.cod_sec using "&&&"
|
detalle1.cod_sec using "#####"
|
||||||
LET cs_ordena[idx].cantidad = detalle1.cantidad using "##########.##"
|
LET cs_ordena[idx].cantidad = detalle1.cantidad using "##########.##"
|
||||||
LET cs_ordena[idx].precio = detalle1.precio using "##########.##"
|
LET cs_ordena[idx].precio = detalle1.precio using "##########.##"
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ GLOBALS
|
|||||||
|
|
||||||
DEFINE cs_ordena ARRAY [20] OF RECORD
|
DEFINE cs_ordena ARRAY [20] OF RECORD
|
||||||
num_req INTEGER,
|
num_req INTEGER,
|
||||||
codigo CHAR(10),
|
codigo CHAR(20),
|
||||||
cantidad CHAR(14),
|
cantidad CHAR(14),
|
||||||
precio CHAR(13),
|
precio CHAR(13),
|
||||||
valor CHAR(14)
|
valor CHAR(14)
|
||||||
|
|||||||
@@ -144,19 +144,11 @@ FUNCTION coprrp001()
|
|||||||
archivo,
|
archivo,
|
||||||
copia
|
copia
|
||||||
|
|
||||||
LET r_filename = 'coprrp001.4rp'
|
-- La API de configuracion de reportes (fgl_report_*) no esta
|
||||||
CALL seleccionarSalida() RETURNING r_output
|
-- disponible en este FGL; se escribe el XML directo a un archivo
|
||||||
|
-- en FGLSPOOL en lugar de usar la plantilla .4rp con vista previa.
|
||||||
LET preview = 1
|
LET r_filename = FGL_GETENV("FGLSPOOL"), "/coprrp001_catalogo.xml"
|
||||||
|
LET handler = om.XmlWriter.createFileWriter(r_filename)
|
||||||
IF fgl_report_loadCurrentSettings(r_filename) THEN -- load the .4rp file
|
|
||||||
|
|
||||||
CALL fgl_report_selectDevice(r_output) -- changing default
|
|
||||||
CALL fgl_report_selectPreview(preview) -- changing default
|
|
||||||
|
|
||||||
|
|
||||||
LET handler = fgl_report_commitCurrentSettings() -- commit changes
|
|
||||||
END IF
|
|
||||||
|
|
||||||
START REPORT catalogo2 TO XML HANDLER handler
|
START REPORT catalogo2 TO XML HANDLER handler
|
||||||
#### Enviando la informacion al registro del reporte
|
#### Enviando la informacion al registro del reporte
|
||||||
|
|||||||
@@ -191,6 +191,10 @@
|
|||||||
<File filePath="codir/cofmwd015.per"/>
|
<File filePath="codir/cofmwd015.per"/>
|
||||||
<File filePath="codir/cofmmt025.per"/>
|
<File filePath="codir/cofmmt025.per"/>
|
||||||
<File filePath="codir/cofmcs005.per"/>
|
<File filePath="codir/cofmcs005.per"/>
|
||||||
|
<File filePath="codir/cofmcs010.4fd"/>
|
||||||
|
<File filePath="codir/cofmcs009.per"/>
|
||||||
|
<File filePath="codir/cofmwd016.per"/>
|
||||||
|
<File filePath="codir/cofmrp001.per"/>
|
||||||
</Library>
|
</Library>
|
||||||
<Application binaryName="coprmt001" dependencies="-1026233879,-764824792,-700000015,-700000016" id="-700000017" label="coprmt001">
|
<Application binaryName="coprmt001" dependencies="-1026233879,-764824792,-700000015,-700000016" id="-700000017" label="coprmt001">
|
||||||
<Configuration commandLineArguments="alopez Lopez2023" id="-700000018" label="Configuration"/>
|
<Configuration commandLineArguments="alopez Lopez2023" id="-700000018" label="Configuration"/>
|
||||||
@@ -220,6 +224,18 @@
|
|||||||
<Configuration commandLineArguments="alopez Lopez2023" id="-700000030" label="Configuration"/>
|
<Configuration commandLineArguments="alopez Lopez2023" id="-700000030" label="Configuration"/>
|
||||||
<File filePath="codir/coprcs005.4gl"/>
|
<File filePath="codir/coprcs005.4gl"/>
|
||||||
</Application>
|
</Application>
|
||||||
|
<Application binaryName="coprcs010" dependencies="-1026233879,-764824792,-700000015,-700000016" id="-700000031" label="coprcs010">
|
||||||
|
<Configuration commandLineArguments="alopez Lopez2023" id="-700000032" label="Configuration"/>
|
||||||
|
<File filePath="codir/coprcs010.4gl"/>
|
||||||
|
</Application>
|
||||||
|
<Application binaryName="coprcs009" dependencies="-1026233879,-764824792,-700000015,-700000016" id="-700000033" label="coprcs009">
|
||||||
|
<Configuration commandLineArguments="alopez Lopez2023" id="-700000034" label="Configuration"/>
|
||||||
|
<File filePath="codir/coprcs009.4gl"/>
|
||||||
|
</Application>
|
||||||
|
<Application binaryName="coprrp001" dependencies="-1026233879,-764824792,-700000015,-700000016,-1423229125" environment="dir:FGLSPOOL=$(ProjectDir)/spool" id="-700000035" label="coprrp001">
|
||||||
|
<Configuration commandLineArguments="alopez Lopez2023 70" id="-700000036" label="Configuration"/>
|
||||||
|
<File filePath="codir/coprrp001.4gl"/>
|
||||||
|
</Application>
|
||||||
</Group>
|
</Group>
|
||||||
<Group id="-1298100213" label="CONTABILIDAD GENERAL">
|
<Group id="-1298100213" label="CONTABILIDAD GENERAL">
|
||||||
<Application binaryName="cgprmt001" dependencies="2055924299,-1026233879" id="-1385997751" label="cgprmt001">
|
<Application binaryName="cgprmt001" dependencies="2055924299,-1026233879" id="-1385997751" label="cgprmt001">
|
||||||
|
|||||||
Reference in New Issue
Block a user