Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0020131 | Openbravo ERP | 05. Production management | public | 2012-03-06 13:07 | 2012-04-12 10:24 | |||||||
Reporter | malsasua | |||||||||||
Assigned To | jecharri | |||||||||||
Priority | high | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 20 | OS Version | Community Appliance | ||||||||
Product Version | 2.50MP40 | |||||||||||
Target Version | 2.50MP41 | Fixed in Version | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | OBPS | |||||||||||
Web browser | Google Chrome | |||||||||||
Modules | Core | |||||||||||
Support ticket | 14594 | |||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0020131: wrong code in mrp_run_initialize process | |||||||||||
Description | When a purchase order line, the schedule delivery date is null , error is returned: null value in column "qty" violates not-null constraint It is generated because in mrp_run_initialize process, in cursor Cur_OrderLine, in the cursor query, the call to the process Mrp_Check_Planningmethod in the zone "select" is distinct to call in the zone "where": in the zone "where", the third parameter of Mrp_Check_Planningmethod process is TO_NUMBER(COALESCE(ol.DatePromised, ol.DateOrdered, o.DateOrdered) - p_PlanningDate) and in the zone "select" the third parameter is TO_NUMBER(ol.DatePromised - p_PlanningDate) this should be equal to previous: TO_NUMBER(COALESCE(ol.DatePromised, ol.DateOrdered, o.DateOrdered) - p_PlanningDate) | |||||||||||
Steps To Reproduce | . create purchase order line without schedule delivery date . run process purchase plan | |||||||||||
Proposed Solution | change in zone "select", in call to process Mrp_Check_Planningmethod, the third parameter from TO_NUMBER(ol.DatePromised - p_PlanningDate) to TO_NUMBER(COALESCE(ol.DatePromised, ol.DateOrdered, o.DateOrdered) - p_PlanningDate) | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2012-03-28 09:25 | jecharri | Type | defect => backport | |||||||||
2012-03-28 09:25 | jecharri | fix_in_branch | => 2.50 | |||||||||
2012-03-28 09:26 | jecharri | Web browser | Google Chrome => Google Chrome | |||||||||
2012-03-28 09:26 | jecharri | version | pi => 2.50MP40 | |||||||||
2012-03-28 09:26 | jecharri | Target Version | 3.0MP10 => 2.50MP41 | |||||||||
2012-03-28 09:42 | hgbot | Checkin | ||||||||||
2012-03-28 09:42 | hgbot | Note Added: 0046797 | ||||||||||
2012-03-28 09:42 | hgbot | Status | scheduled => resolved | |||||||||
2012-03-28 09:42 | hgbot | Resolution | open => fixed | |||||||||
2012-03-28 09:42 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/09e5d0020049826d1bc97b7a042d462e37f82179 [^] => http://code.openbravo.com/erp/stable/2.50/rev/2f9f33f0b923c1098e985858d98ead6a474b5f54 [^] | |||||||||
2012-04-12 10:24 | malsasua | Note Added: 0047497 | ||||||||||
2012-04-12 10:24 | malsasua | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|