Fix - Mostrar clave sat al agregar o actualizar producto
This commit is contained in:
parent
af0b2b6c56
commit
f856d432b2
|
@ -2202,7 +2202,8 @@ class Productos(BaseModel):
|
||||||
Productos.valor_unitario)
|
Productos.valor_unitario)
|
||||||
.join(SATUnidades)
|
.join(SATUnidades)
|
||||||
.switch(Productos)
|
.switch(Productos)
|
||||||
.where((Productos.descripcion.contains(name)) |
|
.where(
|
||||||
|
(Productos.descripcion.contains(name)) |
|
||||||
(Productos.clave.contains(name)))
|
(Productos.clave.contains(name)))
|
||||||
.dicts()
|
.dicts()
|
||||||
)
|
)
|
||||||
|
@ -2281,6 +2282,7 @@ class Productos(BaseModel):
|
||||||
row = {
|
row = {
|
||||||
'id': obj.id,
|
'id': obj.id,
|
||||||
'clave': obj.clave,
|
'clave': obj.clave,
|
||||||
|
'clave_sat': obj.clave_sat,
|
||||||
'descripcion': obj.descripcion,
|
'descripcion': obj.descripcion,
|
||||||
'unidad': obj.unidad.name,
|
'unidad': obj.unidad.name,
|
||||||
'valor_unitario': obj.valor_unitario,
|
'valor_unitario': obj.valor_unitario,
|
||||||
|
@ -2308,6 +2310,7 @@ class Productos(BaseModel):
|
||||||
row = {
|
row = {
|
||||||
'id': obj.id,
|
'id': obj.id,
|
||||||
'clave': obj.clave,
|
'clave': obj.clave,
|
||||||
|
'clave_sat': obj.clave_sat,
|
||||||
'descripcion': obj.descripcion,
|
'descripcion': obj.descripcion,
|
||||||
'unidad': obj.unidad.name,
|
'unidad': obj.unidad.name,
|
||||||
'valor_unitario': obj.valor_unitario,
|
'valor_unitario': obj.valor_unitario,
|
||||||
|
|
Loading…
Reference in New Issue