web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • Doug Lehmkuhl Profile Picture
    5 on at
    RE: How to convert PO approval status from approved to draft when manually releasing PR? AX 2012 R2

    Thank you very much. I typically turn off Public Sector as Microsoft has identified that config key as a considerable performance impact.  Specifically speaking, enabling the "Vendor bidding" sub config key under Public Sector will allow this purchase order draft status flag to appear.

  • BryanHoo Profile Picture
    45 on at
    RE: How to convert PO approval status from approved to draft when manually releasing PR? AX 2012 R2

    hi,

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

  • Trey S Profile Picture
    15 on at
    RE: How to convert PO approval status from approved to draft when manually releasing PR? AX 2012 R2

    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.

  • saransh321 Profile Picture
    212 on at
    RE: How to convert PO approval status from approved to draft when manually releasing PR? AX 2012 R2

    thanks rana anees

  • Trey S Profile Picture
    15 on at
    RE: How to convert PO approval status from approved to draft when manually releasing PR? AX 2012 R2

    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.

  • qianwang Profile Picture
    7,168 on at
    RE: How to convert PO approval status from approved to draft when manually releasing PR? AX 2012 R2

    Hi Trey S,

    It isn't removed.

    7206.png

    Regards,

    QianQW

  • Trey S Profile Picture
    15 on at
    RE: How to convert PO approval status from approved to draft when manually releasing PR? AX 2012 R2

    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?

  • Suggested answer
    David Key Profile Picture
    35 on at
    RE: How to convert PO approval status from approved to draft when manually releasing PR? AX 2012 R2

    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

  • Verified answer
    Rana Anees Profile Picture
    1,813 on at
    RE: How to convert PO approval status from approved to draft when manually releasing PR? AX 2012 R2

    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
    
    }


  • Rana Anees Profile Picture
    1,813 on at
    RE: How to convert PO approval status from approved to draft when manually releasing PR? AX 2012 R2

    Hii ievgen Miroshnikov,

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

    We appreciate that.

    Best Regards,

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans