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:
Sales Line, Body (2) - OnPreSection()
CurrReport.SHOWOUTPUT((Type = Type::Item) AND (Type = Type::"G/L Account"));
Any help would be very welcome!
Cheers,
Paul.
Answers
If you want to hide G/L Account Line in every orders, you can use DataItemTableView.
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 luck
Vijay
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book