You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "diveshdut (via GitHub)" <gi...@apache.org> on 2026/07/03 15:55:28 UTC

[PR] OFBIZ-13451: Apply supplier lead time to purchased MRP requirements [ofbiz-framework]

diveshdut opened a new pull request, #1421:
URL: https://github.com/apache/ofbiz-framework/pull/1421

   ## Summary
   - use active `SupplierProduct.standardLeadTimeDays` when calculating `requirementStartDate` for purchased MRP requirements
   - prefer `supplierPrefOrderId = 10_MAIN_SUPPL`, otherwise fall back to another active supplier with lead time
   - filter supplier records by effective date so expired or inactive `SupplierProduct` rows are not used
   - preserve existing `SUPPLIER` `TechDataCalendar` backward scheduling when available
   - fall back to direct date subtraction when no supplier calendar is defined
   
   ## Details
   Previously, purchased requirements created by MRP did not use supplier procurement lead time to offset the start date. This change updates the purchased-item path to resolve lead time from active `SupplierProduct` records effective for the planning date.
   
   The lead time is now passed into `ProposedOrder.calculateStartDate(...)` for purchased items, while manufactured-item routing behavior remains unchanged.
   
   If a `SUPPLIER` `TechDataCalendar` exists, the purchased requirement still uses OFBiz calendar-based backward scheduling. If it does not exist, the code now falls back to subtracting the resolved lead time directly from the required date so purchased items still receive a procurement offset.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] OFBIZ-13451: Apply supplier lead time to purchased MRP requirements [ofbiz-framework]

Posted by "diveshdut (via GitHub)" <gi...@apache.org>.
diveshdut merged PR #1421:
URL: https://github.com/apache/ofbiz-framework/pull/1421


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org