![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
![]() |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#21
|
|||
|
|||
|
Buenas:
Me surge una duda en cuanto a devoluciones. En el caso de una devolución TOTAL, como actuar?, se crea una nueva factura en negativo?, si es así, hace falta referenciar como en las rectificativas sobre que factura origen haces la devolución? Y en el caso de una devolución parcial? Muchas gracias, |
|
#22
|
|||
|
|||
|
Perfecto. Con esto ya funciona:
<sum1:Encadenamiento> <sum1:PrimerRegistro>S</sum1:PrimerRegistro> </sum1:Encadenamiento> Ya se va viendo la luz (espero que no sea un tren de frente ![]() )Muchas gracias a todos. El trabajo que hacéis es increíble. Última edición por Ja Mon fecha: 06-06-2025 a las 13:24:59. |
|
#23
|
||||
|
||||
|
Cita:
Por favor, no mezcles diferentes preguntas no relacionadas, en un tema. Busca si existe algún mensaje al respecto y sino existe, crea uno nuevo con un título adecuado. Revisa la Guía de estilo de los foros. Este lo borro en breve...
__________________
Germán Estévez => Web/Blog Guía de estilo, Guía alternativa Utiliza TAG's en tus mensajes. Contactar con el Clubdelphi ![]() P.D: Más tiempo dedicado a la pregunta=Mejores respuestas. |
|
#24
|
|||
|
|||
|
Cita:
Aunque imagino que a estas alturas ya lo habrás resuelto, aquí te adjunto cómo realizo las consultas (por ahora, sólo en calidad de "Emisor"). Te muestro el código en DataFlex, pero es muy fácil de comprender. Código:
// Componer el XML de la consulta
// Nota: Hay más posibles filtros opcionales pero incluyo solo lo básico
Get Create (RefClass(cComXml)) to hoXml
Set ComTag of hoXml to "soapenv:Envelope"
Get ComAddAttribute of hoXml "xmlns:soapenv" "....schemas.xmlsoap.org/soap/envelope/" to iSuccess
Get ComAddAttribute of hoXml "xmlns:sfLRC" gsVerifactu_ConsultaLR to iSuccess
Get ComAddAttribute of hoXml "xmlns:sf" ".....agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/tike/cont/ws/SuministroInformacion.xsd" to iSuccess
Send ComUpdateChildContent to hoXml "soapenv:Header" ""
Send ComUpdateChildContent to hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:IDVersion" gsIDVersionEsquema_Verifactu
Send ComUpdateChildContent to hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:ObligadoEmision|sf:NombreRazon" (Trim(EMPRESAS.NOMBRE))
Send ComUpdateChildContent to hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:ObligadoEmision|sf:NIF" EMPRESAS.NIF
If (sNifConsultar <> '') Begin
// ToDo: El campo "NombreRazon" del Destinatario no es obligatorio si se facilita el NIF
// ....prewww1.aeat.es/wlpl/TIKE-CONT/SvTikeEmitidasQuery
Send ComUpdateChildContent to hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:Cabecera|sf:Destinatario|sf:NIF" sNifConsultar
End
Send ComUpdateChildContent to hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:PeriodoImputacion|sf:Ejercicio" sEjercicio
Send ComUpdateChildContent to hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:PeriodoImputacion|sf:Periodo" sPeriodo
If (sNumserieFtra <> '') Send ComUpdateChildContent to hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:NumSerieFactura" sNumserieFtra
If (sDesdeFecha <> '') Begin
If (sDesdeFecha = sHastaFecha) Send ComUpdateChildContent to hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:FechaExpedicionFactura|sf:FechaExpedicionFactura" sDesdeFecha
Else Begin
Send ComUpdateChildContent to hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:FechaExpedicionFactura|sf:RangoFechaExpedicion|sf:Desde" sDesdeFecha
Send ComUpdateChildContent to hoXml "soapenv:Body|sfLRC:ConsultaFactuSistemaFacturacion|sfLRC:FiltroConsulta|sfLRC:FechaExpedicionFactura|sf:RangoFechaExpedicion|sf:Hasta" sHastaFecha
End
End
Get ComGetXml of hoXml to sSoapRequestBody
Send Destroy of hoXml
Antonio PD: Disculpa, pero aún no tengo permiso para poner URLs ![]() |
![]() |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Consulta sobre "Ejemplo de Alta/Anulación de factura, envío HTTPRIO" | mnc2 | Envío de registros y sus respuestas | 7 | 21-02-2025 14:45:17 |
| Necesito XML de mas de un registro de alta | Rja750 | Registros de Facturacion y Eventos (XML) | 6 | 20-02-2025 10:08:15 |
| Error 3002 en subsanacion | ermendalenda | Errores (relacionados con al AEAT) | 5 | 14-11-2024 10:59:55 |
| Necesito ejemplos sobre OOP (Programación orientada a objetos) | brenda | OOP | 5 | 30-04-2007 22:31:58 |
| necesito ver ejemplos de instaladores que utilicen el Alias y el BDe | JClink | Conexión con bases de datos | 1 | 02-02-2006 01:47:37 |
|