Преглед изворни кода

Pongo fechas en PDF y cambio versión

Celestino Rey пре 1 година
родитељ
комит
feb114db71
3 измењених фајлова са 3 додато и 3 уклоњено
  1. 1 1
      K8S/Makefile
  2. 1 1
      src/finanzas/views.py
  3. 1 1
      src/misfinanzas/settings.py

+ 1 - 1
K8S/Makefile

@@ -1,6 +1,6 @@
 export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':')
 export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':')
 export REGISTRY=registry.reymota.es
 export REGISTRY=registry.reymota.es
-export IMG_VERSION = 0.37
+export IMG_VERSION = 0.38
 export IMG_NGINX_VERSION = 1.0
 export IMG_NGINX_VERSION = 1.0
 
 
 # limpia todo
 # limpia todo

+ 1 - 1
src/finanzas/views.py

@@ -614,7 +614,7 @@ def informe_cuenta_pdf(request):
         })
         })
 
 
     template = get_template('informe_cuenta_pdf.html')
     template = get_template('informe_cuenta_pdf.html')
-    html = template.render({'cuenta': cuenta, 'saldo_inicial': saldo_inicial, 'historial': historial})
+    html = template.render({'cuenta': cuenta, 'saldo_inicial': saldo_inicial, 'fecha_inicio': fecha_inicio_str, 'fecha_fin': fecha_fin_str, 'historial': historial})
 
 
     with tempfile.NamedTemporaryFile(delete=True) as output:
     with tempfile.NamedTemporaryFile(delete=True) as output:
         HTML(string=html).write_pdf(output.name)
         HTML(string=html).write_pdf(output.name)

+ 1 - 1
src/misfinanzas/settings.py

@@ -16,7 +16,7 @@ import logging
 
 
 
 
 APP_NAME = "Finanzas"
 APP_NAME = "Finanzas"
-APP_VERSION = os.environ.get("APP_VERSION", "17.0.3")  # Valor por defecto si no está definido
+APP_VERSION = os.environ.get("APP_VERSION", "17.0.4")  # Valor por defecto si no está definido
 IMG_VERSION = os.environ.get("IMG_VERSION", "0.0.0-dev")  # Valor por defecto si no está definido
 IMG_VERSION = os.environ.get("IMG_VERSION", "0.0.0-dev")  # Valor por defecto si no está definido