Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

User should be able to add charge item line after the PO has been released

Posted on by 1,554

Hi all,

There is a scenario where the user should be able to a charge item line after the PO has been released.

How do we do that ?

Thanks,

TK

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,647 Super User 2024 Season 2 on at
    RE: User should be able to add charge item line after the PO has been released

    Hi, as Mohana mentioned, this is a very basic control that is very difficult to bypass.

    Unless you create a new Release field yourself. Then add the controls you need.

    Hope this gives you some new hints.

    Thanks.

    ZHU

  • Suggested answer
    MahGah Profile Picture
    MahGah 15,428 on at
    RE: User should be able to add charge item line after the PO has been released

    That was my guess. Mohana provided one solution. The only reason I mentioned Power Automation I was hoping that with similar method you can bypass that. Like the link you have place that user can enter the data and renter back to PO without that process. Or create Microsoft Form for that and push the data back to BC. Otherwise, I am afraid this will be development as Mohana mentioned.

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: User should be able to add charge item line after the PO has been released

    TestStatusOpen function is called from many fields validation like Type, No. Location Code, Quantity etc.

    I am not sure what is your full requirement and why do you want to skip only while validating the Type field but you should be careful applying this change.

    There many other places under Type validation which require Status to be Open and we do not have events to skip them.

                   if Type <> xRec.Type then begin

                       case xRec.Type of

                           Type::Item:

                               if Quantity <> 0 then begin

                                   PurchHeader.TestField(Status, PurchHeader.Status::Open);

  • tanya07 Profile Picture
    tanya07 1,554 on at
    RE: User should be able to add charge item line after the PO has been released

    Hey,

    I checked the above link , I want to mainly bypass the testopenstatus function which is called when we validate the type on purchase line.

  • Suggested answer
    MahGah Profile Picture
    MahGah 15,428 on at
    RE: User should be able to add charge item line after the PO has been released

    Hi

    I mean my first usual answer is reopen PO then add the charge and release. But I am sure you thought about that. 

    One possible method is to use Power Automation. Similar to the below hack by JAngle  

    joshanglesea.wordpress.com/.../

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans