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
|
||||
{
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
DATABASE marmotech
|
||||
DATABASE smarmotech
|
||||
screen
|
||||
{
|
||||
Ship To [st ]
|
||||
|
||||
@@ -243,10 +243,10 @@ LET idx = 1
|
||||
FOREACH buscate INTO detalle1.*
|
||||
|
||||
LET cs_ordena[idx].num_req = detalle1.num_req
|
||||
LET cs_ordena[idx].codigo = detalle1.cod_n using "&","-",
|
||||
detalle1.cod_grupo using "&","-",
|
||||
detalle1.cod_tipo using "&&","-",
|
||||
detalle1.cod_sec using "&&&"
|
||||
LET cs_ordena[idx].codigo = detalle1.cod_n using "##","-",
|
||||
detalle1.cod_grupo using "####","-",
|
||||
detalle1.cod_tipo using "####","-",
|
||||
detalle1.cod_sec using "#####"
|
||||
LET cs_ordena[idx].cantidad = detalle1.cantidad using "##########.##"
|
||||
LET cs_ordena[idx].precio = detalle1.precio using "##########.##"
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ GLOBALS
|
||||
|
||||
DEFINE cs_ordena ARRAY [20] OF RECORD
|
||||
num_req INTEGER,
|
||||
codigo CHAR(10),
|
||||
codigo CHAR(20),
|
||||
cantidad CHAR(14),
|
||||
precio CHAR(13),
|
||||
valor CHAR(14)
|
||||
|
||||
@@ -144,19 +144,11 @@ FUNCTION coprrp001()
|
||||
archivo,
|
||||
copia
|
||||
|
||||
LET r_filename = 'coprrp001.4rp'
|
||||
CALL seleccionarSalida() RETURNING r_output
|
||||
|
||||
LET preview = 1
|
||||
|
||||
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
|
||||
-- La API de configuracion de reportes (fgl_report_*) no esta
|
||||
-- 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 r_filename = FGL_GETENV("FGLSPOOL"), "/coprrp001_catalogo.xml"
|
||||
LET handler = om.XmlWriter.createFileWriter(r_filename)
|
||||
|
||||
START REPORT catalogo2 TO XML HANDLER handler
|
||||
#### Enviando la informacion al registro del reporte
|
||||
|
||||
@@ -191,6 +191,10 @@
|
||||
<File filePath="codir/cofmwd015.per"/>
|
||||
<File filePath="codir/cofmmt025.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>
|
||||
<Application binaryName="coprmt001" dependencies="-1026233879,-764824792,-700000015,-700000016" id="-700000017" label="coprmt001">
|
||||
<Configuration commandLineArguments="alopez Lopez2023" id="-700000018" label="Configuration"/>
|
||||
@@ -220,6 +224,18 @@
|
||||
<Configuration commandLineArguments="alopez Lopez2023" id="-700000030" label="Configuration"/>
|
||||
<File filePath="codir/coprcs005.4gl"/>
|
||||
</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 id="-1298100213" label="CONTABILIDAD GENERAL">
|
||||
<Application binaryName="cgprmt001" dependencies="2055924299,-1026233879" id="-1385997751" label="cgprmt001">
|
||||
|
||||
Reference in New Issue
Block a user