Display Postage on Printed Sales Order
IrishGiri
Member Posts: 61
Hi Everyone!
I have a sales order with 2 sales lines. One sales line represents an product and so is designated Type Item. The other sales line represents the postage to charge the customer for the delivery of this item and so I designated this as Type G/L Account. However, when I print preview the order the Postage doesn't display. I tried the following code, but it doesn't print the postage along with the sales line:
Any help would be very welcome!
Cheers,
Paul.
I have a sales order with 2 sales lines. One sales line represents an product and so is designated Type Item. The other sales line represents the postage to charge the customer for the delivery of this item and so I designated this as Type G/L Account. However, when I print preview the order the Postage doesn't display. I tried the following code, but it doesn't print the postage along with the sales line:
Sales Line, Body (2) - OnPreSection() CurrReport.SHOWOUTPUT((Type = Type::Item) AND (Type = Type::"G/L Account"));
Any help would be very welcome!
Cheers,
Paul.
0
Answers
-
Hi,
If you want to hide G/L Account Line in every orders, you can use DataItemTableView.0 -
Well you code isnt working for sure. That statement will always return false since no line will be both types...0
-
Hi
Use OR instead of AND in the statement and check that the table view is not restricted to Type Item in the data Item properties.
gud luckThanks & Regards,
Vijay0 -
CurrReport.SHOWOUTPUT((Type = Type::Item) OR (Type = Type::"G/L Account"));
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 -
Of course, silly me!! Cheers everyone.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