Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

cash receipt journal

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

hi i copied in to new form cash receipt journal form, for a new form, i want to enforce that amount should be entered Minus value only, how can i enforce it, before posting the cash receipt journal form..

Appreciate your guidance.. thanks

*This post is locked for comments

  • Verified answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: cash receipt journal

    If you want always revert positive numbers when users add them, you can enhance the code to something like:

    Amount - OnValidate()

    IF (Amount <> 0) THEN

    Amount := -ABS(Amount);

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: cash receipt journal

    Hi, I guess your query is not in line with the general rules of entering transactions in NAV. The standard rules of NAV for positive and negative amount depends on the Document Type selected in the journal lines. I suggest you re-look into the requirements and align your solution accordingly.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: cash receipt journal

    You can write the following code on newly created form....

    Amount - OnValidate()

     IF (Amount <> 0) THEN

       IF (Amount > 0) THEN

         Error('Only Negative Value allowed');

    Hope this helps.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: cash receipt journal

    thanks...im not showing dr/cr fields, as it creates confusion, only amount, it should be minus value

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: cash receipt journal

    Best way to do is, make Debit Amount & Amount field editable FALSE. Let user enter the value in Credit Amount only.

    This way, it should meet your requirement without major changes in the system.

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! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans