Fix in Carta Porte 3.0
This commit is contained in:
commit
8199667188
|
@ -1,3 +1,7 @@
|
|||
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
|
||||
|
|
|
@ -3161,6 +3161,5 @@ 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
|
||||
|
||||
|
|
|
@ -5589,6 +5589,8 @@ 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'] = {}
|
||||
|
|
|
@ -39,7 +39,7 @@ except ImportError:
|
|||
|
||||
|
||||
DEBUG = DEBUG
|
||||
VERSION = '2.3.0'
|
||||
VERSION = '2.3.1'
|
||||
|
||||
EMAIL_SUPPORT = ('soporte@empresalibre.mx',)
|
||||
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)
|
||||
|
|
Loading…
Reference in New Issue