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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Error when voiding customer refund check

(0) ShareShare
ReportReport
Posted on by 85

Good Morning -

User is getting the error "Amount must be positive in Gen. Journal Line Journal Template Name='',Journal Batch Name='',Line No.='0" when attempting to financially voiding a customer refund check.  I believe it has been fixed somewhere.  However, since MS changed their portal, we can no longer search for anything related to Nav / Business Central.  There is nowhere that we can find that allows that.  If anyone knows how to do that I would be forever grateful!

In the meantime, if anyone knows the fix for the error above, can you please send me info on it?  They are on 2013 R2

Thanks,

Diane

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

    Microsoft did a hotfix in KB980359. The fix was:

    "Document Type"::Refund:

      IF NOT "System-Created Entry" THEN

         ErrorIfNegativeAmt(GenJnlLine)

      ELSE

         ErrorIfPositiveAmt(GenJnlLine);

    The KB is here: mbs2.microsoft.com/.../kbdisplay.aspx

    Thanks,

    Steve

  • dmvdmv Profile Picture
    85 on at

    Thanks Steve!  

    I will have our developer take care of that.  BTW, can you tell me how you found that on the MS portal?  Ever since the most recent change to the MS site, we cannot figure out where to go to search for Nav/BC issues.  If you could give me a step by step of where you went to find this, I would be so grateful.  We have an account with MS and I can enter tickets, but can't find where to search for issues.  The only search I can find, searches every single MS product available to mankind.  Earlier this year, I searched for 2020 1099 info and video games came up!

    Thanks,

    Diane

  • dmvdmv Profile Picture
    85 on at

    Steve-

    I don't see the code you posted above when I click on the link to that KB.  Here is the replacement code from the KB:

    Replacement code

           GenJnlLine2."System-Created Entry" := TRUE;

           GenJnlLine2."Financial Void" := TRUE;

           GenJnlLine2."Document No." := CheckLedgEntry."Document No.";

           GenJnlLine2."Document Type" := CheckLedgEntry."Document Type"; // Add this line.

           GenJnlLine2."Account Type" := GenJnlLine2."Account Type"::"Bank Account";

           GenJnlLine2."Posting Date" := ConfirmFinVoid.GetVoidDate;

           GenJnlLine2.VALIDATE("Account No.",CheckLedgEntry."Bank Account No.");

    Replacement code

           GenJnlLine2."System-Created Entry" := TRUE;

           GenJnlLine2."Financial Void" := TRUE;

           GenJnlLine2."Document No." := CheckLedgEntry."Document No.";

           GenJnlLine2."Document Type" := CheckLedgEntry."Document Type"; // Add this line.

           GenJnlLine2."Account Type" := CheckLedgEntry."Bal. Account Type";

           GenJnlLine2."Posting Date" := ConfirmFinVoid.GetVoidDate;

           GenJnlLine2.VALIDATE("Account No.",CheckLedgEntry."Bal. Account No.");

  • Suggested answer
    Community Member Profile Picture
    on at

    Hello,

    I too am having a hard time finding KB's. Hopefully Microsoft Support who sees these can provide a link to the KB.

    Thanks,

    Steve

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,066

#2
YUN ZHU Profile Picture

YUN ZHU 658 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 595

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans