From 615b309718f02d1fd1f091f5898cb8ce1689d36a Mon Sep 17 00:00:00 2001 From: david Date: Thu, 23 Apr 2026 12:38:33 +0200 Subject: [PATCH] v0.2.1 --- app/db/sync_invoices_factuges_REST_API.py | 4 ++-- app/utils/send_rest_api.py | 3 ++- setup.cfg | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/db/sync_invoices_factuges_REST_API.py b/app/db/sync_invoices_factuges_REST_API.py index eab2638..5d5ffe2 100644 --- a/app/db/sync_invoices_factuges_REST_API.py +++ b/app/db/sync_invoices_factuges_REST_API.py @@ -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 diff --git a/app/utils/send_rest_api.py b/app/utils/send_rest_api.py index e69e824..019a972 100644 --- a/app/utils/send_rest_api.py +++ b/app/utils/send_rest_api.py @@ -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. diff --git a/setup.cfg b/setup.cfg index e4d8555..26b2fb8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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