Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Create Reminder

Posted on by 265

Hello all,

In NAV 2016 we use the Report Create Reminder to create a letter with customer ledger entries and its details.
In the report filters we have not to calc and show some docs like Document No. : <>NCVS*&<>VD*&<>FTVS*

What i want now is to not show <>NCVS*&<>VD* and the FTVS only show those that due date - posting date >180.
Where in code it calcs the custledgerentries?
I know it calls a function in codeunit Reminder-Make

can someone help?

*This post is locked for comments

  • Rikarddo Profile Picture
    Rikarddo 265 on at
    RE: Create Reminder

    It was easier in the MakeReminder Function alter the code to

    {IF (CALCDATE(ReminderLevel."Grace Period",ReminderDueDate) < ReminderHeaderReq."Document Date") AND
    ((LineLevel <= ReminderTerms."Max. No. of Reminders") OR (ReminderTerms."Max. No. of Reminders" = 0))}//OLDCODE

    NEWCODE
    //Roliveira 2019-07-11
    IF ((CALCDATE(ReminderLevel."Grace Period",ReminderDueDate) < ReminderHeaderReq."Document Date") AND
    ((COPYSTR(CustLedgEntry."Document No.",1,4)<>'FTVS'))AND
    ((COPYSTR(CustLedgEntry."Document No.",1,2)<>'VD')))
    AND
    (((LineLevel <= ReminderTerms."Max. No. of Reminders") OR (ReminderTerms."Max. No. of Reminders" = 0)) AND
    ((COPYSTR(CustLedgEntry."Document No.",1,4)<>'FTVS'))AND
    ((COPYSTR(CustLedgEntry."Document No.",1,4)<>'NCVS')))
    OR ((COPYSTR(CustLedgEntry."Document No.",1,4)='FTVS') AND (TODAY-CustLedgEntry."Posting Date" >180))
    AND
    ((COPYSTR(CustLedgEntry."Document No.",1,2)<>'VD'))
    AND
    ((COPYSTR(CustLedgEntry."Document No.",1,4)<>'NCVS'))

    Thanks for the help

  • Rikarddo Profile Picture
    Rikarddo 265 on at
    RE: Create Reminder

    So i've made this..

    LOCAL FilterCustLedgEntries(VAR ReminderLevel2 : Record "Reminder Level")

    CustLedgEntry.SETFILTER("Document No.",'<>%1|<>%2','VD*','NCVS*');

    IF COPYSTR(CustLedgEntry."Document No.",1,4)='FTVS' THEN

     IF (Today-CustLedgEntry."Posting Date" >180) THEN...

    (It should skip those invoices)

    But it keeps me showing and calculating some Invoices that doesn't respect the 180 days condition

  • Verified answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Create Reminder

    Check the function FilterCustLedgEntries and FilterCustLedgEntriesReminderLevel in the same codeunit.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans