Resuelto - Obtener id de almacen origen
This commit is contained in:
parent
54f2a574a3
commit
f793cd2240
|
@ -4052,7 +4052,7 @@ class WareHouseProduct(BaseModel):
|
|||
def _get_by_product(cls, args):
|
||||
id = int(args['id'])
|
||||
select = (
|
||||
WareHouseProduct.id,
|
||||
Almacenes.id,
|
||||
Almacenes.name.alias('warehouse'),
|
||||
WareHouseProduct.exists,
|
||||
)
|
||||
|
@ -7626,7 +7626,7 @@ class Tickets(BaseModel):
|
|||
obj.total = totals['total']
|
||||
obj.save()
|
||||
|
||||
cls._update_inventory(cls, obj.id, user=user)
|
||||
cls._update_inventory(cls, obj.id, user=user)
|
||||
|
||||
row = {
|
||||
'id': obj.id,
|
||||
|
@ -9915,6 +9915,8 @@ class InventoryEntries(BaseModel):
|
|||
result = {'ok': False, 'msg': msg}
|
||||
return result
|
||||
|
||||
print(0, args)
|
||||
|
||||
storage = args['target']
|
||||
cant = Decimal(args['cant'])
|
||||
values = dict(
|
||||
|
|
Loading…
Reference in New Issue