A/R Days Past Due column RPT 121 Customer Balance to Date
emulsified
Member Posts: 139
Hello everyone.
I am trying to add a "Days Past Due" column to REPORT 121 Customer Balance to Date for each each document displayed.
In other words I would like a column that shows the # of days past due for any given lines in this document. If a customer has an invoice that is 37 days past due I want it to show 37 in the "Days Past Due" column.
:-k I'm not sure what type of calculation I need and where to put it and also what fields to use to get what I need.
Any help is greatly appreciated.
I am trying to add a "Days Past Due" column to REPORT 121 Customer Balance to Date for each each document displayed.
In other words I would like a column that shows the # of days past due for any given lines in this document. If a customer has an invoice that is 37 days past due I want it to show 37 in the "Days Past Due" column.
:-k I'm not sure what type of calculation I need and where to put it and also what fields to use to get what I need.
Any help is greatly appreciated.
Half-empy or half-full how do you view your database?
Thanks.
Thanks.
0
Comments
-
Create A Variable "DaysPastDue" Type Integer
OnAfterGetRecord
DaysPastDue := WORKDATE - Tabelyourusing."Due Date";
Add textvox to report - pur DaysPastDue as sourceexp.
I don't have a report 121 so I don't know what table it uses - I assume custlegder entries.0 -
Worked perfectly. This report MODIFIED is much more useful.
Added the following code to OnAfterGetRecord in DataItem "Cust. Ledger Entry" after creating the appropriate text boxes in the sections I needed and the Global Variables for DueDate and DaysPastDue.// 2007-11-02 added by TPL, displays Days Past Due and Due Date // If no days past due then show zero // If document type is a credit memo then show zero // Get the Due Date DueDate := "Due Date"; // Find elapsed days since Due Date DaysPastDue := WORKDATE - "Due Date"; // Don't display negative values IF DaysPastDue < 1 THEN DaysPastDue := 0; // Always display a ZERO value for Credit Memos IF "Document Type" = 3 THEN DaysPastDue := 0;
Thanks for your help. Half-empy or half-full how do you view your database?
Thanks.0
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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 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