Skip to content

OFBIZ-13463: Fixed false late flag on REQUIRED_MRP proposed supply in MRP engine#1485

Open
diveshdut wants to merge 1 commit into
apache:trunkfrom
diveshdut:mrp-proposed-supply-late-flag
Open

OFBIZ-13463: Fixed false late flag on REQUIRED_MRP proposed supply in MRP engine#1485
diveshdut wants to merge 1 commit into
apache:trunkfrom
diveshdut:mrp-proposed-supply-late-flag

Conversation

@diveshdut

@diveshdut diveshdut commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Jira Ticket:

https://issues.apache.org/jira/browse/OFBIZ-13463

Summary

Fixed a false isLate = Y condition for proposed MRP supply generated from stock-policy replenishment markers.

MRP creates an internal replenishment trigger when current QOH is below ProductFacility.minimumStock, then immediately creates proposed supply. The proposed requirement start date can be a few milliseconds earlier than the MRP run timestamp, which caused the proposed supply event to be incorrectly marked late.

This change prevents that false late classification for REQUIRED_MRP- driven proposed supply while preserving the existing late behavior for real late demand/supply situations.

Changes

  • added a small helper in MrpServices to evaluate whether a proposed order should be late
  • excluded REQUIRED_MRP source events from proposed-order late classification
  • kept the original timestamp-based late behavior for non-REQUIRED_MRP source events
  • added dedicated MRP regression tests
  • added a dedicated manufacturing MRP test suite registration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant