Create Reminder

Rikarddo
Member Posts: 80
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?
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?
0
Best Answer
-
It was easier in the function MAkeReminder alter the code:
{IF (CALCDATE(ReminderLevel."Grace Period",ReminderDueDate) < ReminderHeaderReq."Document Date") AND ((LineLevel <= ReminderTerms."Max. No. of Reminders") OR (ReminderTerms."Max. No. of Reminders" = 0))}//OLD CODE //NEW CODE //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'))
0
Answers
-
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...
But it keeps me showing and calculating some Invoices that doesn't respect the 180 days condition0 -
It was easier in the function MAkeReminder alter the code:
{IF (CALCDATE(ReminderLevel."Grace Period",ReminderDueDate) < ReminderHeaderReq."Document Date") AND ((LineLevel <= ReminderTerms."Max. No. of Reminders") OR (ReminderTerms."Max. No. of Reminders" = 0))}//OLD CODE //NEW CODE //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'))
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions