Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0056495Openbravo ERP04. Warehouse managementpublic2024-09-19 08:462024-09-19 08:49
prakashmurugesan88 
Triage Omni WMS 
normalmajoralways
newopen 
5
 
 
Core
No
0056495: Bill of Material Production - Stock validation missing in for production lines generated from bom hierarchy
Stock validation missing in for production lines generated from bom hierarchy

Lines are generated from M_PRODUCTION_RUN process,

* If the lines are generated directly from the bom lines, production lines are generated based on stock,
https://gitlab.com/openbravo/product/openbravo/-/blob/master/src-db/database/model/functions/M_PRODUCTION_RUN.xml#L255 [^]

https://gitlab.com/openbravo/product/openbravo/-/blob/master/src-db/database/model/functions/M_PRODUCTION_RUN.xml#L306 [^]

* But if the lines are generated from the hierarchy of bom line, no stock validation is done,
https://gitlab.com/openbravo/product/openbravo/-/blob/master/src-db/database/model/functions/M_PRODUCTION_RUN.xml#L480 [^]
Create Products
* Legs - Bill Of Material: 'N'; Stocked: 'Y'
* Table Top - Bill Of Material: 'N'; Stocked: 'Y'
* 2 Legs Pack - Bill Of Material: 'Y'; Stocked: 'N'
  Bill of Materials
   Legs - 2
* Table - Bill Of Material: 'Y'; Stocked: 'Y'
  Bill of Materials
   Table Top - 1
   2 Legs Pack - 2

Create Bill of Material Production
With Production Plan for Table
Click Create/Process Production

while the lines(Production Lines) are generated for BOM Products
Notice it creates entry for Table Top based on stock.
Because consumed product must be stocked.

But when the lines are generated for 2 Legs Pack
As it is Non Stocked Bom product, It goes through the hierarchy and creates lines for legs.
However there is no stock validation done for the legs creation.
It is created in production locator itself.
But stock validation should be done as it is consumed product.
No tags attached.
Issue History
2024-09-19 08:46prakashmurugesan88New Issue
2024-09-19 08:46prakashmurugesan88Assigned To => Triage Omni WMS
2024-09-19 08:46prakashmurugesan88Modules => Core
2024-09-19 08:46prakashmurugesan88Triggers an Emergency Pack => No
2024-09-19 08:49prakashmurugesan88SummaryStock validation missing in case of lines generated from hierarchy => Bill of Material Production - Stock validation missing in for production lines generated from bom hierarchy
2024-09-19 08:49prakashmurugesan88Description Updatedbug_revision_view_page.php?rev_id=28470#r28470
2024-09-19 08:49prakashmurugesan88Steps to Reproduce Updatedbug_revision_view_page.php?rev_id=28472#r28472

There are no notes attached to this issue.