This blog details the functional requirements and design enhancements implemented to modify purchase requisition (PR) combination rules in Microsoft Dynamics 365 (D365). The new customization refines PR combination criteria, ensuring requisitions are grouped only when they share the same vendor and delivery address, providing a more streamlined and efficient ordering process.
In the standard D365 system, purchase requisitions can be combined based on various parameters, potentially merging requisitions across vendors or delivery addresses. This default setup can introduce operational inefficiencies, complicating inventory management and the receiving process. The revised combination rules are designed to mitigate these issues by only allowing PRs to be merged if they originate from the same vendor and share a single delivery address. This optimization improves logistical accuracy, strengthens vendor relationships, and enhances the overall order fulfilment process.
To address the business needs, the following combination rules have been implemented:
Include code snippets that demonstrate:
Navigation:
Procurement and resourcing > setup >Purchasing Policy
After clicking Purchase policy > select the ‘Purchase order creation and demand consolidation rule ‘> add new rule > if already defined the click on ‘never’
In this form we Set up the split rules as our requirement, first we have to add a new check box , named as Address
First we have to add the check box , Address in the Set up split rules form:
> Add new field in PuchReqSourcingSplitRule table.
> Add on PuchReqSourcingSplitRule form.
After build sync the Project it look like:
If user set up the policy and check the Address checkbox as ‘Yes’ then after selecting
Navigation:
Procurement and sourcing > Purchase Requisitions > approved Purchase Requisitions Processing
Create a COC of the following classes and write a code as directed in the following snapshots.
After this ,build and sync the project.
Create a PR lines and after the workflow Approved status, select the PR lines and click on Purchase Order
Navigation:
Procurement and sourcing > Purchase Requisitions > approved Purchase Requisitions Processing
In the above PR lines, 2 lines have the same delivery address and 2 have the different delivery address , So two Purchase Order created on Same Vendor after this customization.