I have a Warehouse Movements model, I want to take stock per warehouse of an item.
The SQL query is:
select almacen_id, sum(uentrada), sum(usalida) from Almacen_movimiento
where articulo_id = 2
group by almacen_id
I try this:
mv...
asked by
05.11.2016 / 19:10