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
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
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")
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');
André Arnaud de Cal... 291,711 Super User 2024 Season 2
Martin Dráb 230,458 Most Valuable Professional
nmaenpaa 101,156