Fix - Mostrar cuenta prefial en prefactura
This commit is contained in:
parent
38f2b5a610
commit
de675a0de1
|
@ -3003,6 +3003,7 @@ class PreFacturas(BaseModel):
|
|||
product['unidad'] = p.unidad.key
|
||||
product['clave'] = p.clave
|
||||
product['clave_sat'] = p.clave_sat
|
||||
product['cuenta_predial'] = p.cuenta_predial
|
||||
|
||||
product['factura'] = invoice.id
|
||||
product['producto'] = id_product
|
||||
|
@ -3276,7 +3277,12 @@ class PreFacturasDetalle(BaseModel):
|
|||
producto = {}
|
||||
producto['noidentificacion'] = '{}\n(SAT {})'.format(
|
||||
p.producto.clave, p.producto.clave_sat)
|
||||
|
||||
producto['descripcion'] = p.descripcion
|
||||
if p.cuenta_predial:
|
||||
info = '\nCuenta Predial Número: {}'.format(p.cuenta_predial)
|
||||
producto['descripcion'] += info
|
||||
|
||||
producto['unidad'] = '{}\n({})'.format(
|
||||
p.producto.unidad.name, p.producto.unidad.key)
|
||||
producto['cantidad'] = str(p.cantidad)
|
||||
|
|
Loading…
Reference in New Issue