Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0020835 | Openbravo ERP | 07. Sales management | public | 2012-06-22 10:23 | 2012-06-29 11:00 |
|
Reporter | maite | |
Assigned To | jonalegriaesarte | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 3.0MP13 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0020835: Problem when generating commission for business partner with more than one associated user |
Description | Problem when generating commission for business partner with more than one associated user |
Steps To Reproduce | Error obtained is "more than one row returned by a subquery used as an expression" |
Proposed Solution | Line 262 in C_COMMISSION_PROCESS.xml function is
v_Cmd:=v_Cmd || ' AND h.SalesRep_ID = (SELECT AD_User_ID FROM AD_User WHERE C_BPartner_ID=''' || v_SalesRep_ID || ''')';
It should be replaced by:
v_Cmd:=v_Cmd || ' AND h.SalesRep_ID IN (SELECT AD_User_ID FROM AD_User WHERE C_BPartner_ID=''' || v_SalesRep_ID || ''' AND IsActive='Y')'; |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2012-06-22 10:23 | maite | New Issue | |
2012-06-22 10:23 | maite | Assigned To | => mirurita |
2012-06-22 10:23 | maite | Modules | => Core |
2012-06-22 10:24 | maite | Target Version | => 3.0MP13 |
2012-06-22 10:24 | maite | Issue Monitored: networkb | |
2012-06-22 10:39 | mirurita | Assigned To | mirurita => jonalegriaesarte |
2012-06-25 13:21 | jonalegriaesarte | Assigned To | jonalegriaesarte => caristu |
2012-06-25 13:22 | jonalegriaesarte | Assigned To | caristu => jonalegriaesarte |
2012-06-26 12:09 | hgbot | Checkin | |
2012-06-26 12:09 | hgbot | Note Added: 0050084 | |
2012-06-26 12:09 | hgbot | Status | new => resolved |
2012-06-26 12:09 | hgbot | Resolution | open => fixed |
2012-06-26 12:09 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/5f9870e3e4e3cb43c81c9158c721ddbf4916d9f0 [^] |
2012-06-26 12:10 | jonalegriaesarte | Note Added: 0050085 | |
2012-06-27 05:29 | hudsonbot | Checkin | |
2012-06-27 05:29 | hudsonbot | Note Added: 0050172 | |
2012-06-29 11:00 | xabiermerino | Note Added: 0050274 | |
2012-06-29 11:00 | xabiermerino | Status | resolved => closed |