Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0018053
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 06. Material requirement planning (MRP)majoralways2011-07-21 12:442015-05-13 13:41
ReporterandreaferacoView Statuspublic 
Assigned Tomirurita 
PrioritynormalResolutionduplicateFixed in Version
StatusclosedFix in branchpiFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version1.6.0_18
OS VersionProfessional ApplianceDatabase version8.3.9Ant version1.7.1
Product VersionSCM revision 
Review Assigned To
Web browserMozilla Firefox
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0018053: Suggested Work Requirement not generated by MRP

DescriptionWhen MRP is processed for a product configured with a minimum stock, the application does not suggest any work requirement to re-establish minimum stock.
Steps To Reproduce1) Create a product P flagged as "production" and linked to a process plan.
2) Set minimum stock for this product P to 25 units
3) From manufacturing plan window run the process "Process Manufacturing Plan"
4) When the process is completed just two records are inserted in the table MRP_RUN_PRODUCTIONLINE:
|A|Minimum Stock|-25
|A|Stock|0
No suggested work requirement records have been created. Actually it was expected at least a third record:
|A|Suggested Work Requirement|25
5) We have noticed that if the "Process Manufacturing Plan" is executed a second time without deleting existing records in MRP_RUN_PRODUCTIONLINE, the application correctly creates the records for the suggested work requirements.

The application behaviour after the second execution is consistent with the expected behaviour, however this behaviour was expected immediately after the first execution.

We analysed the code and realised that the stored procedure "mrp_run_initialize" inserts in MRP_RUN_PRODUCTIONLINE just the lines of stock (ST) and minimum stock (MS) having the flag "isexploded" = 'Y'.
Because of this condition, the stored procedure "mrp_run_explode", invoked after "mrp_run_initialize", excludes those records, and therefore it does not generate any Suggested Work Requirement because of the Minimum Stock.

When the procedure is run the second time, the stored procedure "mrp_production_run" executes this SQL statement before invoking the other procedures:

UPDATE MRP_RUN_PRODUCTIONLINE SET isexploded = 'N' WHERE MRP_RUN_PRODUCTION_ID = v_Record_ID AND qty <0 AND INOUTTRXTYPE <> 'WR';

You can see that it sets to N the flag isexploded, therefore even if "mrp_run_initialize" skips the product P because already created in the table MRP_RUN_PRODUCTIONLINE, however the "mrp_run_explode" takes it into account and correctly generates the Suggested Work Requirement.

We tried to modify the "mrp_run_initialize" so to take the record related to minimum stock (MS) at the first execution, but the procedure raises an exception (it tries to fill a null value in the planneddate field).
TagsVMA-Reviewed
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
duplicate of defect 0019435 closedVictorVillar To specify that Manufacturing planning does not take into account safety stock as minimum requirement unless there is demand. 

-  Notes
(0041323)
gorkaion (developer)
2011-09-27 16:38

It is intended to consider the safety stock only in case there is some demand.

On the second run it shouldn't propose any production. The update clause should be fixed to filter out stock and safety stock transaction types.
(0077380)
plujan (manager)
2015-05-13 13:41

A similar issue was reported later and it was fixed without noticing this previous report, so I am closing it as duplicated.

- Issue History
Date Modified Username Field Change
2011-07-21 12:44 andreaferaco New Issue
2011-07-21 12:44 andreaferaco Assigned To => jonalegriaesarte
2011-07-21 12:44 andreaferaco Web browser => Mozilla Firefox
2011-07-21 12:44 andreaferaco Modules => Core
2011-07-21 12:53 riccardogervasi Issue Monitored: riccardogervasi
2011-07-21 12:53 riccardogervasi Issue End Monitor: riccardogervasi
2011-07-21 12:54 riccardogervasi Issue Monitored: riccardogervasi
2011-09-27 16:38 gorkaion Status new => scheduled
2011-09-27 16:38 gorkaion Note Added: 0041323
2011-09-27 16:38 gorkaion fix_in_branch => pi
2012-04-03 12:20 jonalegriaesarte Assigned To jonalegriaesarte => vmromanos
2012-04-10 16:13 vmromanos Tag Attached: VMA-Reviewed
2012-05-10 12:12 gorka_gil Assigned To vmromanos => mirurita
2015-05-13 13:41 plujan Relationship added duplicate of 0019435
2015-05-13 13:41 plujan Note Added: 0077380
2015-05-13 13:41 plujan Status scheduled => closed
2015-05-13 13:41 plujan Resolution open => duplicate


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker