Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0030376 | Openbravo ERP | 02. Master data management | public | 2015-07-15 18:46 | 2015-08-20 23:16 |
Reporter | VictorVillar | ||||
Assigned To | AtulOpenbravo | ||||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | pi | ||||
Target Version | 3.0PR15Q4 | Fixed in Version | |||
Merge Request Status | |||||
Review Assigned To | vmromanos | ||||
OBNetwork customer | OBPS | ||||
Web browser | |||||
Modules | Core | ||||
Support ticket | 36271 | ||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0030376: The Create Price List process is modifying the Current Vendor field when it should not | ||||
Description | The Create Price List process is modifying the Current Vendor field when it should not | ||||
Steps To Reproduce | As System Admin, Go to Windows, tabs and fields: select the Product window - Purchasing Tab Organization field = Yes Log out and Log in. Go to Product window Add two registers for different organizations. Add 2 Business Partners in Purchasing tab with the same Price List defined. Current Vendor = Yes for both registers. 2 different organizations Add the same Price List to the product. Go to Price List window, select the same Price List as before Click on 'Create Price List' button (Note that you should have define a base price list in the price list version) When finishes realise that the process has changed the flag 'current vendor'. Now it has 'N'. The problem is in the m_pricelist_create function: /** * Make sure that we have only one active product */ v_ResultStr:='CorrectingDuplicates'; RAISE NOTICE '%',v_ResultStr ; DECLARE -- All duplicate products Cur_Duplicates RECORD; -- All vendors of Product - expensive first DECLARE Cur_Vendors CURSOR (Product_ID VARCHAR) FOR SELECT M_Product_ID, C_BPartner_ID FROM M_Product_PO WHERE IsCurrentVendor='Y' AND IsActive='Y' AND M_Product_ID=Product_ID ORDER BY PriceList DESC; -- Product_ID VARCHAR(32); --OBTG:VARCHAR2-- BPartner_ID VARCHAR(32); --OBTG:VARCHAR2-- BEGIN FOR Cur_Duplicates IN (SELECT DISTINCT M_Product_ID FROM M_Product_PO po WHERE IsCurrentVendor='Y' AND IsActive='Y' AND EXISTS (SELECT M_Product_ID FROM M_Product_PO x WHERE x.M_Product_ID=po.M_Product_ID GROUP BY M_Product_ID HAVING COUNT(*)>1 ) ORDER BY 1 ) LOOP OPEN Cur_Vendors(Cur_Duplicates.M_Product_ID) ; FETCH Cur_Vendors INTO Product_ID, BPartner_ID; -- Leave First LOOP FETCH Cur_Vendors INTO Product_ID, BPartner_ID; -- Get Record ID EXIT WHEN NOT FOUND ; --OBTG:Cur_Vendors-- -- RAISE NOTICE '%',' Record: ' || Product_ID || ' / ' || BPartner_ID ; UPDATE M_Product_PO SET IsCurrentVendor='N' WHERE M_Product_ID=Product_ID AND C_BPartner_ID=BPartner_ID; END LOOP; CLOSE Cur_Vendors; END LOOP; | ||||
Proposed Solution | It should not change anything. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2015-07-15 18:46 | VictorVillar | New Issue | |||
2015-07-15 18:46 | VictorVillar | Assigned To | => Triage Finance | ||
2015-07-15 18:46 | VictorVillar | OBNetwork customer | => Yes | ||
2015-07-15 18:46 | VictorVillar | Modules | => Core | ||
2015-07-15 18:46 | VictorVillar | Support ticket | => 36271 | ||
2015-07-15 18:46 | VictorVillar | Resolution time | => 1438898400 | ||
2015-07-15 18:46 | VictorVillar | Triggers an Emergency Pack | => No | ||
2015-07-15 18:46 | VictorVillar | Issue Monitored: networkb | |||
2015-07-16 09:01 | jpcalvente | Issue Monitored: jpcalvente | |||
2015-07-16 09:18 | AtulOpenbravo | Assigned To | Triage Finance => AtulOpenbravo | ||
2015-07-16 09:18 | AtulOpenbravo | Status | new => scheduled | ||
2015-07-17 09:18 | AtulOpenbravo | Note Added: 0078910 | |||
2015-07-17 09:18 | AtulOpenbravo | Note Edited: 0078910 | bug_revision_view_page.php?bugnote_id=0078910#r9056 | ||
2015-07-17 10:04 | hgbot | Checkin | |||
2015-07-17 10:04 | hgbot | Note Added: 0078913 | |||
2015-07-17 10:04 | hgbot | Status | scheduled => resolved | ||
2015-07-17 10:04 | hgbot | Resolution | open => fixed | ||
2015-07-17 10:04 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/116e50e703f6b420f6fc087aa72663d0ede7d1cb [^] | ||
2015-07-17 10:04 | hgbot | Checkin | |||
2015-07-17 10:04 | hgbot | Note Added: 0078914 | |||
2015-07-17 10:04 | hgbot | Checkin | |||
2015-07-17 10:04 | hgbot | Note Added: 0078915 | |||
2015-07-17 10:06 | vmromanos | Review Assigned To | => vmromanos | ||
2015-07-17 10:06 | vmromanos | Note Added: 0078916 | |||
2015-07-17 10:06 | vmromanos | Status | resolved => closed | ||
2015-08-20 23:16 | hudsonbot | Checkin | |||
2015-08-20 23:16 | hudsonbot | Note Added: 0079497 | |||
2015-08-20 23:16 | hudsonbot | Checkin | |||
2015-08-20 23:16 | hudsonbot | Note Added: 0079498 | |||
2015-08-20 23:16 | hudsonbot | Checkin | |||
2015-08-20 23:16 | hudsonbot | Note Added: 0079499 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|