v0.2.1
This commit is contained in:
parent
eedb555096
commit
615b309718
@ -94,7 +94,7 @@ def sync_invoices_from_FACTUGES(conn_mysql, filas, conn_factuges, config):
|
|||||||
if factura_payload is not None:
|
if factura_payload is not None:
|
||||||
logger.info(">>>> Se cambia de factura y vamos a insertar la anterior")
|
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)
|
logger.info(resultado_rest)
|
||||||
num_fac_procesed += 1
|
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:
|
if factura_payload is not None:
|
||||||
logger.info(">>>> Última factura y vamos a insertar")
|
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)
|
logger.info(resultado_rest)
|
||||||
num_fac_procesed += 1
|
num_fac_procesed += 1
|
||||||
|
|
||||||
|
|||||||
@ -161,7 +161,8 @@ def validar_nif_verifacti(
|
|||||||
|
|
||||||
|
|
||||||
def insert_invoice_REST_API_FACTUGES(
|
def insert_invoice_REST_API_FACTUGES(
|
||||||
payload
|
payload,
|
||||||
|
config,
|
||||||
) -> Dict[str, Any]:
|
) -> Dict[str, Any]:
|
||||||
"""
|
"""
|
||||||
Llama a la REST API de FACTUGES para insertar una proforma aprobada.
|
Llama a la REST API de FACTUGES para insertar una proforma aprobada.
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = factuges-sync
|
name = factuges-sync
|
||||||
version = 0.2.0
|
version = 0.2.1
|
||||||
description = ETL job to sync data from legacy DB to MariaDB
|
description = ETL job to sync data from legacy DB to MariaDB
|
||||||
author = Rodax Software
|
author = Rodax Software
|
||||||
author_email = info@rodax-software.com
|
author_email = info@rodax-software.com
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user