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

Message to Recipient Message is Referencing Wrong Invoice Number

(0) ShareShare
ReportReport
Posted on by

In Nav 2018, when posting payments from the payment journal, not all the time but on occasions the message to recipient would reference a different invoice number that was paid.  The invoice number

would be one that was in the payment journal but not the one being paid for that vendor.  

The payments were all applied to the correct invoices but on some the "message to recipient"  would reference a different invoice number. It could be an invoice from a different vendor or the same 

vendor. How can that be. 

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 on at

    Just in the journal lines or after when you export, print cheque or produce remittance advice?

    [quote user="Pbcharlee"]

    In Nav 2018, when posting payments from the payment journal, not all the time but on occasions the message to recipient would reference a different invoice number that was paid.  The invoice number

    would be one that was in the payment journal but not the one being paid for that vendor.  

    The payments were all applied to the correct invoices but on some the "message to recipient"  would reference a different invoice number. It could be an invoice from a different vendor or the same 

    vendor. How can that be. 

    [/quote]

    I’ll assume it is from using the suggest vendor payments feature. This block of code is used to get a message depending on the state of the data and how you run the suggest vendor payments feature. Safe to say you’re not summarising per vendor. I assume it’s the last part of the code which let’s you down. Strange if you are having 1 entry per invoice.

    local procedure GetMessageToRecipient(SummarizePerVend: Boolean): Text[140]

       var

           VendorLedgerEntry: Record "Vendor Ledger Entry";

       begin

           if SummarizePerVend then

               exit(CompanyInformation.Name);

           VendorLedgerEntry.Get(TempPaymentBuffer."Vendor Ledg. Entry No.");

           if VendorLedgerEntry."Message to Recipient" <> '' then

               exit(VendorLedgerEntry."Message to Recipient");

           exit(

             StrSubstNo(

               MessageToRecipientMsg,

               TempPaymentBuffer."Vendor Ledg. Entry Doc. Type",

               TempPaymentBuffer."Applies-to Ext. Doc. No."));

       end;

    Do you get the same result in a sandbox? That way your Microsoft partner can debug it. Might be a call with Microsoft is required to log a bug or it already appears as a bug on that build of NAV and you need to apply a cumulative update to fix it

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 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans