REPORT_INTRASTAT: set price to 0 if no SO or PO found

bzr revid: ced-58fb25322435eb8da9e19e8834c2baaeffa96657
This commit is contained in:
ced 2007-01-23 09:37:29 +00:00
parent bd8533b609
commit a9d229d66f
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class report_intrastat(osv.osv):
else
case when sol.price_unit is not null
then sol.price_unit * m.product_qty
else pt.standard_price * m.product_qty
else 0
end
end) as value,
sum(pt.weight_net * m.product_qty) as weight,