Compare commits

..

No commits in common. "81996671880cc7bd3172909bcd44fa50b890b7d8" and "0ec4f0c2c9c5b5d36854b0c4521027374eb4c26f" have entirely different histories.

5 changed files with 3 additions and 8 deletions

View File

@ -1,7 +1,3 @@
v 2.3.1 [02-Abr-2024]
- Fix: En la cantidad de la mercancia en la Carta Porte
v 2.3.0 [01-Abr-2024]
- Mejora: Soporte para complemento Carta Porte 3.0
- **IMPORTANTE**: Aunque no lo uses, esto afecta al JS de facturación, por

View File

@ -1 +1 @@
2.3.1
2.3.0

View File

@ -3161,5 +3161,6 @@ def parse_xml2(xml_str):
def get_idccp():
uuid4 = str(uuid.uuid4()).upper()
custom_uuid_str = f'CCC{uuid4[3:]}'
# ~ custom_uuid_str = f"CCC{uuid_v4.hex[3:8].upper()}-{uuid_v4.hex[8:12].upper()}-{uuid_v4.hex[12:16].upper()}-{uuid_v4.hex[16:20].upper()}-{uuid_v4.hex[20:32].upper()}"
return custom_uuid_str

View File

@ -5589,8 +5589,6 @@ class Facturas(BaseModel):
total_weight += float(mercancia['PesoEnKg'])
if isinstance(mercancia['PesoEnKg'], (int, float)):
mercancia['PesoEnKg'] = f"{mercancia['PesoEnKg']:.2f}"
if isinstance(mercancia['Cantidad'], str):
mercancia['Cantidad'] = float(mercancia['Cantidad'])
mercancia['Cantidad'] = f"{mercancia['Cantidad']:.2f}"
info['mercancias'] = {}

View File

@ -39,7 +39,7 @@ except ImportError:
DEBUG = DEBUG
VERSION = '2.3.1'
VERSION = '2.3.0'
EMAIL_SUPPORT = ('soporte@empresalibre.mx',)
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)