Update Due Date in Customer Ledger Entry
MAJB69
Member Posts: 2
We have 100's of entries in the Customer Ledger Entry Table with the wrong due date.
I have change the Payment Terms Code on the Customer Card.
What I would like to do is create a routine that would take the Document Date for each individual CLE line, get the Payment Terms Code from the Customer Card and Re-Calculate the Due Date.
Any Help would be appreciated.
I have change the Payment Terms Code on the Customer Card.
What I would like to do is create a routine that would take the Document Date for each individual CLE line, get the Payment Terms Code from the Customer Card and Re-Calculate the Due Date.
Any Help would be appreciated.
0
Comments
-
You'll just have to write a report to run down these Cust. Ledger Entries and do something along the lines of:
In Table View <Filter to the payment terms that was wrong, date etc... filter for open> OnAfterGetRecord() Customer.GET("Customer No."); PaymentTerms.GET(Customer."Payment Terms Code"); VALIDATE("Due Date",CALCDATE(STRSUBSTNO('+%1',PaymentTerms."Due Date Calculation"),"Document Date"); //VALIDATE to get Reminder Entries if exists... MODIFY;-Lavin
"Profanity is the one language all programmers know best."0 -
make sure you use the developer's license when doing this.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Alex Chow wrote:make sure you use the developer's license when doing this.
Due Date can be manually changed after posting entries with Cust. License so I see no need of Developer License.CA Sandeep Singla
http://ssdynamics.co.in0 -
ssingla wrote:Alex Chow wrote:make sure you use the developer's license when doing this.
Due Date can be manually changed after posting entries with Cust. License so I see no need of Developer License.
Only from the form, not if you go into the table directly or run a process only report.
Essentially, you have to incorporate Cust. Entry-Edit codeunit into your process.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions