Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0006176
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] Z. Otherstrivialhave not tried2008-11-24 12:552009-03-03 17:09
ReportervillindView Statuspublic 
Assigned ToDowid 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branch2.40Fixed in SCM revision12218
ProjectionnoneETAnoneTarget Version
OSAnyDatabasePostgreSQLJava version
OS VersionDatabase version8.3.5Ant version
Product Version2.40SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0006176: Alert tule "Products under stock" does not work on Postgresql

DescriptionThe alert query has incompatible data types.
Steps To ReproduceActivate the alert "Products under stock", and see the log
Proposed SolutionAdd to number for '-1' as postgresql is considering this value as integer, not numeric.

Fixed version:

select p.M_PRODUCT_ID as referencekey_id,
       p.name as record_id,
       0 as ad_role_id,
       null as ad_user_id,
       p.name||' with minimun stock '||po.stockmin||' has stocked '||
                   (select sum(qtyonhand) as QtyStored
                       from m_storage_detail s
                       where s.m_product_id = po.m_product_id
                        and ad_isOrgIncluded(s.ad_org_id,po.ad_org_id,po.ad_client_id)!=to_number(-1)) as description,
       'Y' as isActive,
        0 as ad_org_id,
        0 as ad_client_id,
        now() as created,
        0 as createdBy,
        now() as updated,
        0 as updatedBy
  from m_product p,
       m_product_org po
where p.m_product_id = po.m_product_id
  and po.stockmin is not null
  and po.stockmin > (select sum(qtyonhand) as QtyStored
                       from m_storage_detail s
                       where s.m_product_id = po.m_product_id
                        and ad_isOrgIncluded(s.ad_org_id,po.ad_org_id,po.ad_client_id)!=to_number(-1))
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0006152 closedDowid Alert tule "Products under stock" does not work on Postgresql 

-  Notes
(0012588)
svnbot (reporter)
2009-01-23 17:10

Repository: openbravo
Revision: 12218
Author: dowid
Date: 2009-01-23 17:10:26 +0100 (Fri, 23 Jan 2009)

bug fixed 0006176: Alert rule "Products under stock" does not work on Postgresql

---
U branches/r2.40/src-db/database/sourcedata/AD_ALERTRULE.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=12218&sc=1 [^]

- Issue History
Date Modified Username Field Change
2008-11-24 12:55 rafaroda New Issue
2008-11-24 12:55 rafaroda Assigned To => Dowid
2008-11-24 12:55 rafaroda Status new => scheduled
2009-01-23 17:10 svnbot Checkin
2009-01-23 17:10 svnbot Note Added: 0012588
2009-01-23 17:10 svnbot Status scheduled => resolved
2009-01-23 17:10 svnbot Resolution open => fixed
2009-01-23 17:10 svnbot svn_revision => 12218
2009-03-03 17:09 psarobe Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker