forked from elmau/empresa-libre
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):
|
def _get_by_product(cls, args):
|
||||||
id = int(args['id'])
|
id = int(args['id'])
|
||||||
select = (
|
select = (
|
||||||
WareHouseProduct.id,
|
Almacenes.id,
|
||||||
Almacenes.name.alias('warehouse'),
|
Almacenes.name.alias('warehouse'),
|
||||||
WareHouseProduct.exists,
|
WareHouseProduct.exists,
|
||||||
)
|
)
|
||||||
|
@ -7626,7 +7626,7 @@ class Tickets(BaseModel):
|
||||||
obj.total = totals['total']
|
obj.total = totals['total']
|
||||||
obj.save()
|
obj.save()
|
||||||
|
|
||||||
cls._update_inventory(cls, obj.id, user=user)
|
cls._update_inventory(cls, obj.id, user=user)
|
||||||
|
|
||||||
row = {
|
row = {
|
||||||
'id': obj.id,
|
'id': obj.id,
|
||||||
|
@ -9915,6 +9915,8 @@ class InventoryEntries(BaseModel):
|
||||||
result = {'ok': False, 'msg': msg}
|
result = {'ok': False, 'msg': msg}
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
print(0, args)
|
||||||
|
|
||||||
storage = args['target']
|
storage = args['target']
|
||||||
cant = Decimal(args['cant'])
|
cant = Decimal(args['cant'])
|
||||||
values = dict(
|
values = dict(
|
||||||
|
|
Loading…
Reference in New Issue