Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0032461 | Retail Modules | Discounts and Promotions | public | 2016-03-11 12:31 | 2016-03-18 15:29 |
Reporter | malsasua | ||||
Assigned To | jorge-garcia | ||||
Priority | immediate | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 20 | OS Version | Community Appliance | |
Product Version | pi | ||||
Target Version | Fixed in Version | RR16Q2 | |||
Merge Request Status | |||||
Review Assigned To | marvintm | ||||
OBNetwork customer | OBPS | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0032461: Database discounts functions are wrong defined: exception are not managed | ||||
Description | The database discounts functions (for example: https://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/file/1ab09dd431c2/src-db/database/model/functions/OBDISC_XY_GIFT.xml [^]) are not managing the exceptions | ||||
Steps To Reproduce | - Launch a Oracle instance 1) Go to ERP 2) Navigate to window Discounts and Promotions 3) Select record Big Lantern -> gift small one, and go to Product tab 4) Uncheck Gift Product checkbox from Torch mini record and save it 5) Go to Sales Order window 6) Create a sale with lines: --> Line 1: Basecamp lantern, qty 1 --> Line 2: Torch mini, qty 1 7) Save the sales order and tap Book button 8) Select book, and click button OK. 9) Check a "no data found" error is raised. - Try steps 1 to 8 in a postgres instance and check that in step 9, no error is raised. | ||||
Proposed Solution | code of type: EXCEPTION WHEN OTHERS THEN v_ResultStr:= '@ERROR=' || SQLERRM; RAISE NOTICE '%',v_ResultStr ; -- ROLLBACK; IF(p_PInstance_ID IS NOT NULL) THEN PERFORM AD_UPDATE_PINSTANCE(p_PInstance_ID, NULL, 'N', 0, v_ResultStr) ; END IF; -- RAISE EXCEPTION '%', v_ResultStr ; --OBTG:-20100-- should be added to the function It is needed to review also other functions on the module. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=9175&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-03-11 12:31 | malsasua | New Issue | |||
2016-03-11 12:31 | malsasua | Assigned To | => Retail | ||
2016-03-11 12:31 | malsasua | OBNetwork customer | => Yes | ||
2016-03-11 12:31 | malsasua | Triggers an Emergency Pack | => No | ||
2016-03-11 13:00 | egoitz | Resolution time | => 1427839200 | ||
2016-03-11 13:00 | egoitz | Severity | minor => major | ||
2016-03-11 13:00 | egoitz | Proposed Solution updated | |||
2016-03-11 14:00 | Orekaria | Status | new => acknowledged | ||
2016-03-14 15:54 | marvintm | Resolution time | 1427839200 => 1459461600 | ||
2016-03-15 08:55 | egoitz | Resolution time | 1459461600 => 1458169200 | ||
2016-03-15 08:55 | egoitz | Priority | high => immediate | ||
2016-03-15 11:07 | jorge-garcia | Status | acknowledged => scheduled | ||
2016-03-15 11:07 | jorge-garcia | Assigned To | Retail => jorge-garcia | ||
2016-03-15 17:41 | jorge-garcia | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=11450#r11450 | ||
2016-03-16 15:49 | jorge-garcia | File Added: buyXgiftYfix.diff | |||
2016-03-18 11:52 | hgbot | Checkin | |||
2016-03-18 11:52 | hgbot | Note Added: 0085222 | |||
2016-03-18 11:52 | hgbot | Status | scheduled => resolved | ||
2016-03-18 11:52 | hgbot | Resolution | open => fixed | ||
2016-03-18 11:52 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/41e788c55a5a011d69369812c9fa10bf4e23522b [^] | ||
2016-03-18 15:29 | marvintm | Review Assigned To | => marvintm | ||
2016-03-18 15:29 | marvintm | Status | resolved => closed | ||
2016-03-18 15:29 | marvintm | Fixed in Version | => RR16Q2 |
Notes | |||||
|
|||||
|
|