Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Applies To Item Entry - Manadatory

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

While Using Negative Adjustment in the Item Journal , I Need to make the (Applies to Item Entry) to Be mandatory so the User cant forget to use that Function.

*This post is locked for comments

  • Verified answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,749 on at
    RE: Applies To Item Entry - Manadatory

    I think it is best to add the Mohana code in the RunCheck function of the Codeunit 21 Item Jnl. -Check Line instead of the on Push action of the post.

    If "Entry Type" = "Entry Type"::"Negative Adjmt." THEN

    TESTFIELD("Applies-to Entry")

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 60,054 Super User 2024 Season 2 on at
    RE: Applies To Item Entry - Manadatory

    you can write below code in Post-Onpush trigger

    IF "Entry Type" = "Entry Type"::"Negative Adjmt." THEN

     IF "Applies-to Entry" = 0 THEN

       ERROR('Please select Applies-to Entry');

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans