This commit is contained in:
David Arranz 2026-04-23 12:38:33 +02:00
parent eedb555096
commit 615b309718
3 changed files with 5 additions and 4 deletions

View File

@ -94,7 +94,7 @@ def sync_invoices_from_FACTUGES(conn_mysql, filas, conn_factuges, config):
if factura_payload is not None:
logger.info(">>>> Se cambia de factura y vamos a insertar la anterior")
resultado_rest = insert_invoice_REST_API_FACTUGES(factura_payload)
resultado_rest = insert_invoice_REST_API_FACTUGES(factura_payload, config)
logger.info(resultado_rest)
num_fac_procesed += 1
@ -161,7 +161,7 @@ def sync_invoices_from_FACTUGES(conn_mysql, filas, conn_factuges, config):
if factura_payload is not None:
logger.info(">>>> Última factura y vamos a insertar")
resultado_rest = insert_invoice_REST_API_FACTUGES(factura_payload)
resultado_rest = insert_invoice_REST_API_FACTUGES(factura_payload, config)
logger.info(resultado_rest)
num_fac_procesed += 1

View File

@ -161,7 +161,8 @@ def validar_nif_verifacti(
def insert_invoice_REST_API_FACTUGES(
payload
payload,
config,
) -> Dict[str, Any]:
"""
Llama a la REST API de FACTUGES para insertar una proforma aprobada.

View File

@ -1,6 +1,6 @@
[metadata]
name = factuges-sync
version = 0.2.0
version = 0.2.1
description = ETL job to sync data from legacy DB to MariaDB
author = Rodax Software
author_email = info@rodax-software.com