Resuelto - Obtener id de almacen origen

This commit is contained in:
El Mau 2021-11-22 09:16:28 -06:00
parent 54f2a574a3
commit f793cd2240
1 changed files with 4 additions and 2 deletions

View File

@ -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(