web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

cash receipt journal

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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.

  • Community Member Profile Picture
    on at

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

  • Verified answer
    Community Member Profile Picture
    on at

    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.

  • Suggested answer
    Community Member Profile Picture
    on at

    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
    Alexander Ermakov Profile Picture
    28,096 on at

    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);

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans