Openbravo Issue Tracking System - Openbravo ERP |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0004459 | Openbravo ERP | 06. Material requirement planning (MRP) | public | 2008-07-18 19:06 | 2008-07-22 11:04 |
|
| Reporter | mrp02000 | |
| Assigned To | cromero | |
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | duplicate | |
| Platform | | OS | 5 | OS Version | |
| Product Version | 2.35MP5 | |
| Target Version | | Fixed in Version | | |
| Merge Request Status | |
| Review Assigned To | |
| OBNetwork customer | No |
| Web browser | |
| Modules | Core |
| Support ticket | |
| Regression level | |
| Regression date | |
| Regression introduced in release | |
| Regression introduced by commit | |
| Triggers an Emergency Pack | No |
|
| Summary | 0004459: Error in function mrp_workrequirement? |
| Description | After processing a manufacturing plan and attempting to create the suggested work requirements, the process fails with the report:
"null value in column "ma_workrequirement_id" violates not-null constraint"
No work requirements are created. Line 79 of the function mrp_workrequirement reads:
SELECT * INTO v_WR_ID FROM Ad_Sequence_Next('MRP_WorkRequirement', v_User_ID);
seemingly passing the table mrp_workrequirement to the ad_sequence_next function. If the function is changed so that the table ma_workrequirement is passed instead, work requirements can be generated from the manufacturing plan, and show up in the appropriate transaction area. |
| Steps To Reproduce | Using the Openbravo online demo, create a planner and planning method for one of the products with a process plan. Create a sales order or forecast to generate demand, create a manufacturing plan, and process it. Verify that work requirements are suggested in the Lines tab. Attempt to create the material and work requirements. |
| Proposed Solution | For me, changing line 79 in the function as described fixed the problem. |
| Additional Information | |
| Tags | No tags attached. |
| Relationships | | duplicate of | backport | 0004105 | | closed | gorkaion | Error in MRP_WORKREQUIREMENT.xml function |
|
| Attached Files | |
|
| Issue History |
| Date Modified | Username | Field | Change |
| 2008-07-18 19:06 | mrp02000 | New Issue | |
| 2008-07-18 19:06 | mrp02000 | Assigned To | => cromero |
| 2008-07-18 19:06 | mrp02000 | sf_bug_id | 0 => 2021650 |
| 2008-07-19 10:16 | joan | Note Added: 0008338 | |
| 2008-07-22 11:04 | cromero | Relationship added | duplicate of 0004105 |
| 2008-07-22 11:04 | cromero | Status | new => closed |
| 2008-07-22 11:04 | cromero | Note Added: 0008362 | |
| 2008-07-22 11:04 | cromero | Duplicate ID | 0 => 4105 |
| 2008-07-22 11:04 | cromero | Resolution | open => duplicate |