We attach the script to his, is running every Monday and sent an e-mail, the problem silk adds that the result as the body of the mail and not as an attachment
DEF VAR comanda AS CHAR. OUTPUT TO "/extr/cxc_comercial1". put "Factura;Cuenta;Monto;Monto Aplicado;Rut;Nombre;Moneda;Fecha;Fecha de Ven;" SKIP. FOR EACH ar_mstr WHERE ar_domain = '20' and ar_amt <> ar_applied: FIND FIRST cm_mstr WHERE cm_domain = '20' AND cm_addr = ar_bill NO-ERROR.
OUTPUT Close. OUTPUT TO "/extr/cxc_comercial2". put "Factura;Cuenta;Monto;Monto Aplicado;Rut;Nombre;Moneda;Fecha;Fecha de Ven;" SKIP. FOR EACH ar_mstr WHERE ar_domain = '10' and ar_amt <> ar_applied: FIND FIRST cm_mstr WHERE cm_domain = '10' AND cm_addr = ar_bill NO-ERROR.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.