You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Divesh Dutta (Jira)" <ji...@apache.org> on 2026/05/06 17:54:00 UTC
[jira] [Commented] (OFBIZ-13262) Implement Inventory Reservation Flow for Work Orders in Manufacturing
[ https://issues.apache.org/jira/browse/OFBIZ-13262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18078748#comment-18078748 ]
Divesh Dutta commented on OFBIZ-13262:
--------------------------------------
I have created a PR ([#1168|https://github.com/apache/ofbiz-framework/pull/1168]) to finalize the Manufacturing Inventory Reservation framework.
While PR #958 introduced initial concepts, it had significant shortcomings in the issuance logic which did not correctly reconcile against the new reservation state. This PR addresses those gaps and provides a complete, stable implementation.
*Key Improvements over PR #958:*
* {*}Integrated Issuance{*}: Refactored the issuance logic to ensure that {{WorkEffortInvRes}} records are correctly consumed and reconciled during physical issuance, preventing "ghost inventory."
* {*}Ledger-Compliant Reconciliation{*}: Implemented the {{trinitySync}} auditor to ensure ATP counts always match the sum of physical stock and active reservations.
* {*}Automated Backorder Fulfillment{*}: Added real-time satisfaction logic that fulfills production debt as soon as inventory is received.
* {*}Policy Enforcement{*}: Introduced facility-level flags ({{{}allowInventoryTheft{}}}, etc.) to support diverse production environments.
* {*}Comprehensive Testing{*}: Stabilized and expanded the test suite to {*}35 unit tests{*}, ensuring full regression coverage for all policy matrices.
This PR supersedes the logic in PR #958 and is fully CodeNarc compliant. See description of PR to get more details.
> Implement Inventory Reservation Flow for Work Orders in Manufacturing
> ---------------------------------------------------------------------
>
> Key: OFBIZ-13262
> URL: https://issues.apache.org/jira/browse/OFBIZ-13262
> Project: OFBiz
> Issue Type: Sub-task
> Components: manufacturing
> Affects Versions: Upcoming Branch
> Reporter: Yashwant Dhakad
> Assignee: Divesh Dutta
> Priority: Minor
> Fix For: Upcoming Branch
>
> Attachments: OFBIZ-13262.patch, image-2025-06-19-08-57-41-245.png
>
>
> Introduce a robust inventory reservation flow for work orders in the manufacturing module. Currently, inventory is not reserved at the time of production run approval, leading to the risk of overcommitting stock across multiple runs. This enhancement will enable both manual lot selection by users and automatic reservation based on configured logic (like FIFO/LIFO). The goal is to prevent material conflicts, improve inventory accuracy, and align with real-world production control needs.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)