Customer Ledger Entries and Sales Invoice Header

gulamdastagir
Member Posts: 411
Hi Navies
The Customer Statement display the Invoice Documents on it.
for eg Customer XYZ
Doc Number
SI-1
SI-2
SI-3
.
.
.
Is there a way we can print the sales invoice report filtered only the Document Numbers SI1,SI2,SI3...as displayed on the Customer Statement.
The Customer Statement display the Invoice Documents on it.
for eg Customer XYZ
Doc Number
SI-1
SI-2
SI-3
.
.
.
Is there a way we can print the sales invoice report filtered only the Document Numbers SI1,SI2,SI3...as displayed on the Customer Statement.
Regards,
GD
GD
0
Comments
-
Yes. Just print the sales invoice with the filter SI-1, SI-2, etc... on the No. field.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
I am printing 2 reports to pdf printer and attaching them to email.
The first report is a "customer XYZ " stmt showing sales invoices SI-1,SI-2,SI-3...
The Second report 206 shows all the invoices for the Customer XYZ.
But i want to display only the Invoices which are displayed in Statement ie. SI1,SI2,SI3 and not ALL
Please suggest solving this in C/AL
ThanksRegards,
GD0 -
Report 206 is the sales invoice report, therefore to filter this to show the ones you have on your statement you have to "individually" define the invoices as Alex states.
Not sure what you are trying to achieve really, seems strange to run this report at this stage, so difficult to comment.The art of teaching is clarity and the art of learning is to listen0 -
please try to understand from a developers perspective.
the customer stmt filters the customer ledger entrries and displays the sales invoices on it
Now purely using code can i print only those invoices that are shown on the stmt?
](*,)Regards,
GD0 -
gulamdastagir wrote:Hi Navies
The Customer Statement display the Invoice Documents on it.
for eg Customer XYZ
Doc Number
SI-1
SI-2
SI-3
.
.
.
Is there a way we can print the sales invoice report filtered only the Document Numbers SI1,SI2,SI3...as displayed on the Customer Statement.
There are many solutions, here are two;
1/ On each line of the statement, call the invoice report (including all your pdf code) so that the pdf for each invocie is created as it is printed on the statement. I am not sure what PDF converter you are using, so it may not be possible to recursively call.
2/ Whilst running the statement, build up a filter InvoiceFilter += "|"+"Document No." which will create the "SI1|SI2|SI3" filter. The create a function in the Statement report that returns this "filter" back to the caller. Then just run the invoice report with this new filter.David Singleton0
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