web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to convert PO approval status from approved to draft when manually releasing PR? AX 2012 R2

(0) ShareShare
ReportReport
Posted on by 1,813

Hii,

We have two separate line review workflows for purchase requisitions and purchase orders.

We manually release purchase requisition to purchase order when PR workflow status is approved. Its our business requirement to run two separate workflows for PR and PO. 

Problem: On PR to PO release, Purchase Order approval status remains Approved and PO workflow do not activate. We want newly created PO from PR approval status should be Draft, so that PO workflow could be applied. For manual PO workflow works.

Please guide how we can achieve this?
Do we need customization?

Best Regards.

*This post is locked for comments

I have the same question (0)
  • Mea_ Profile Picture
    60,284 on at

    Hi Rana Anees,

    We had the same issue and customized AX to release PR to PO in draft status instead of approved.

  • Rana Anees Profile Picture
    1,813 on at

    Hii ievgen Miroshnikov,

    That's great. Could you please share the customization details, code and where to apply.

    We appreciate that.

    Best Regards,

  • Verified answer
    Rana Anees Profile Picture
    1,813 on at

    This customization is if you are creating PO from PR manually.

    PO auto approved status will be turned to draft so the PO workflow could be applied.

    Class Name: PurchAutoCreate_PurchReq 
    Method Name: endUpdate()

    public void endUpdate()
    
    {
    
    super();
    
    // Calculate discount before purchTable is automatically changed to approval status
    
    if (purchTable.ChangeRequestRequired)
    {
    
    purchTable.reread();
    
    if(PurchParameters::find().AutomaticTotalDiscount)
    
    {
    
    purchTable.updateFinalDisc();
    
    }
    
    }
    
    //purchTable.autoApproveChangeRequest(); only commented this line
    
    }


  • Suggested answer
    David Key Profile Picture
    35 on at

    In D365 version 10.0.6, it is Standard. Plz check ON on Procurement and sourcing parameter Give purchase orders created via purchase requisitions Draft approval status.  When relesed PR to PO, approval status's PO is Draft.

    4152.Capture.PNG

  • Trey S Profile Picture
    15 on at

    David Key  I have looked on Procurement and sourcing parameters do not have that button shown in your picture.  My environment is D365 version 10.0.7 (Update 31 platform) - was it removed?

  • qianwang Profile Picture
    7,168 on at

    Hi Trey S,

    It isn't removed.

    7206.png

    Regards,

    QianQW

  • Trey S Profile Picture
    15 on at

    Thank you for checking.  Can you think of a reason why I would not be able to see it?  I have already checked every license configuration that made sense to me.

    Any help is much appreciated.

  • saransh321 Profile Picture
    212 on at

    thanks rana anees

  • Trey S Profile Picture
    15 on at

    For anyone who has the same issue as I did, a developer tracked it to the Public Sector section of the license key configs that were disabled in that environment.

  • BryanHoo Profile Picture
    45 on at

    hi,

    I have turned this parameter on. However, my PRs are still released in POs with the status approved. Am I missing something?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans