Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010687Openbravo ERP01. General setuppublic2009-09-22 10:342009-10-23 00:00
networkb 
rafaroda 
highminoralways
closedfixed 
5
2.50MP5 
2.50MP82.50MP7 
Core
No
0010687: Some alerts are wrong defined
Some alerts defined in the application does not work. Some of them do not work just in Postgre, and other ones, in both databases.

Here, you are the ones that do not work in both databases (AD_Alertrule_ID):
*1000018,1000020, FDA0D6B303CD4F289A04FA41844C4B0C

And this ones, do not work just in Postgre:
*800003, 1000007, 1000021, 1000022
Connect directly with the database and execute:

select * from ad_alertrule

Obtain "SQL" column from the query, taking into account only the AD_Alertrule_ID provided above.

Try to execute the query. Different errors will appear.
No tags attached.
has duplicate defect 0010587 closed rafaroda Some alerts in sourcedata are wrong 
Issue History
2009-09-22 10:34networkbNew Issue
2009-09-22 10:34networkbAssigned To => rafaroda
2009-09-22 10:34networkbversion => 2.50MP5
2009-09-22 10:53rafarodaNote Added: 0020256
2009-09-22 10:53rafarodaPriorityimmediate => high
2009-09-22 10:53rafarodaStatusnew => scheduled
2009-09-22 10:55rafarodaRelationship addedhas duplicate 0010587
2009-09-22 15:14galderromoIssue Monitored: galderromo
2009-09-23 07:49rafarodaNote Added: 0020292
2009-10-01 10:12hgbotCheckin
2009-10-01 10:12hgbotNote Added: 0020619
2009-10-01 10:12hgbotStatusscheduled => resolved
2009-10-01 10:12hgbotResolutionopen => fixed
2009-10-01 10:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/4b516ef751acabdda4f3dc8bfecda7d0966ae7b7 [^]
2009-10-01 11:28jeneivemalarkodiNote Added: 0020623
2009-10-22 09:25arunkumarStatusresolved => closed
2009-10-22 09:25arunkumarNote Added: 0021308
2009-10-22 09:25arunkumarFixed in Version => 2.50MP7
2009-10-23 00:00anonymoussf_bug_id0 => 2884249

Notes
(0020256)
rafaroda   
2009-09-22 10:53   
More wrong alerts:
1- "Columns with search reference and reference value null". It is necessary to change: WHERE AD_REFERENCE_ID = 30 by WHERE AD_REFERENCE_ID = '30'
2- "Process Execution Failed". The view ad_process_run_v doesn't exist
3- "Vendor or Customer BPs without Bill To address" SQL is wrong, replace it by:

select c_bpartner_id as referencekey_id,
       name as record_id,
       0 as ad_role_id,
       null as ad_user_id,
       name ||'has not bill to address' as description,
       'Y' as isActive,
        ad_org_id,
        ad_client_id,
        now() as created,
        0 as createdBy,
        now() as updated,
        0 as updatedBy
  from c_bpartner bp
where (isvendor='Y' or iscustomer='Y')
and not exists (select 1
                  from c_bpartner_location l
                where l.c_bpartner_id = bp.c_bpartner_id
                and isbillto='Y')
(0020292)
rafaroda   
2009-09-23 07:49   
A collateral issue related is that, if any of these wrong alerts is active, it will break the alert background process.
(0020619)
hgbot   
2009-10-01 10:12   
Repository: erp/devel/pi
Changeset: 4b516ef751acabdda4f3dc8bfecda7d0966ae7b7
Author: Jeneive Malar Kodi <jeneive.malarkodi <at> openbravo.com>
Date: Thu Oct 01 13:41:13 2009 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/4b516ef751acabdda4f3dc8bfecda7d0966ae7b7 [^]

Fixed Issue 10687: Some alerts are wrong defined

---
M src-db/database/sourcedata/referencedData/AD_ALERTRULE.xml
---
(0020623)
jeneivemalarkodi   
2009-10-01 11:28   
* Nine alert quries are modified out of 20 records in OB

Test Cases:

1. Enable all alerts in OB (General Setup -> Application -> Alert)
2. Ensure that all alerts have 'Alert Recipient' Entry
3. Create new process request(General Setup -> Process Scheduling -> Process Request)
4. Can view alerts in 'Alert Management' (General Setup -> Application -> Alert management)
5. Have to test in both the databases
(0021308)
arunkumar   
2009-10-22 09:25   
Tested & Working fine.