[IMP] stock:set decimal precision on postgres report

bzr revid: sbh@tinyerp.com-20100923071044-qdi1a5xafb74bh69
This commit is contained in:
sbh (Open ERP)
2010-09-23 12:40:44 +05:30
parent 71bc1eaa19
commit ed99a00b56
+4 -4
View File
@@ -153,8 +153,8 @@ create or replace view report_stock_inventory as (
m.product_id as product_id, l.usage as location_type,
m.company_id,
m.state as state, m.prodlot_id as prodlot_id,
sum(-m.product_qty*u.factor)::decimal(16,2) as product_qty,
sum(-pt.standard_price * m.product_qty * u.factor)::decimal(16,2) as value
sum(-m.product_qty*u.factor)::decimal as product_qty,
sum(-pt.standard_price * m.product_qty * u.factor)::decimal as value
from
stock_move m
left join stock_picking p on (m.picking_id=p.id)
@@ -172,8 +172,8 @@ create or replace view report_stock_inventory as (
m.product_id as product_id, l.usage as location_type,
m.company_id,
m.state as state, m.prodlot_id as prodlot_id,
sum(m.product_qty*u.factor)::decimal(16,2) as product_qty,
sum(pt.standard_price * m.product_qty * u.factor)::decimal(16,2) as value
sum(m.product_qty*u.factor)::decimal as product_qty,
sum(pt.standard_price * m.product_qty * u.factor)::decimal as value
from
stock_move m
left join stock_picking p on (m.picking_id=p.id)