forked from elmau/empresa-libre
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['unidad'] = p.unidad.key
|
||||||
product['clave'] = p.clave
|
product['clave'] = p.clave
|
||||||
product['clave_sat'] = p.clave_sat
|
product['clave_sat'] = p.clave_sat
|
||||||
|
product['cuenta_predial'] = p.cuenta_predial
|
||||||
|
|
||||||
product['factura'] = invoice.id
|
product['factura'] = invoice.id
|
||||||
product['producto'] = id_product
|
product['producto'] = id_product
|
||||||
|
@ -3276,7 +3277,12 @@ class PreFacturasDetalle(BaseModel):
|
||||||
producto = {}
|
producto = {}
|
||||||
producto['noidentificacion'] = '{}\n(SAT {})'.format(
|
producto['noidentificacion'] = '{}\n(SAT {})'.format(
|
||||||
p.producto.clave, p.producto.clave_sat)
|
p.producto.clave, p.producto.clave_sat)
|
||||||
|
|
||||||
producto['descripcion'] = p.descripcion
|
producto['descripcion'] = p.descripcion
|
||||||
|
if p.cuenta_predial:
|
||||||
|
info = '\nCuenta Predial Número: {}'.format(p.cuenta_predial)
|
||||||
|
producto['descripcion'] += info
|
||||||
|
|
||||||
producto['unidad'] = '{}\n({})'.format(
|
producto['unidad'] = '{}\n({})'.format(
|
||||||
p.producto.unidad.name, p.producto.unidad.key)
|
p.producto.unidad.name, p.producto.unidad.key)
|
||||||
producto['cantidad'] = str(p.cantidad)
|
producto['cantidad'] = str(p.cantidad)
|
||||||
|
|
Loading…
Reference in New Issue