Skip to main content
Submitted by Suzanne Scanlan on 19 January 2018

ArcherPoint Dynamics NAV Developer Digest - vol 175 ArcherPoint's Developer Digest Weekly Blog

The NAV community, including the ArcherPoint technical staff, is made up of developers, project managers, and consultants who are constantly communicating, with the common goal of  sharing helpful information with one another to help customers be more successful.

As they run into issues and questions, find the answers, and make new discoveries, they post them on blogs, forums, social everyone can benefit. We in Marketing watch these interactions and never cease to be amazed by the creativity, dedication, and brainpower we’re so fortunate to have in this community—so we thought, wouldn’t it be great to share this great information with everyone who might not have the time to check out the multitude of resources out there? So, the ArcherPoint Microsoft Dynamics NAV Developer Digest was born. Each week, we present a collection of thoughts and findings from NAV experts and devotees around the world. We hope these insights will benefit you, too.

NAV 2017 Item Sales Statistics Report Issue with Breakdown By Variant Filter

Gwen C: Has anyone ever looked at Report 10135 Item Sales Statistics in NAV 2017? No mods have been made to the report. There is a filter to choose “Breakdown By Variant” when you execute the report. When I click the filter before I execute the report, all detail goes away but I can see through watching in debugger that the Item Variant code is being executed and data exists. If I don't click the filter, I get detail by Item. Any help would be appreciated. Thanks. 

Kyle: That sounds like something a CU might have addressed. Since they are cumulative, you can get the changed-object list for the application update from the latest CU and delta the code. 

Setting Up a Maximum Quantity for Line Item Discounts in Dynamics NAV

Adrian: Is there a way to set up a "Maximum Quantity" for Sales Line Discounts? For example, a line discount would only apply to a sales line with quantity of 12. If the quantity is 13, 12 of them would get discounts while 1 is still charged with the regular price. Thanks for your ideas in advance. 

Trish: I don't think there's a way to do this without a modification. The standard Sales Line Discounts functionality has a Minimum Quantity field that can be used to define 'layers' of discounts based on the document Quantity.

However, the logic simply looks at the Quantity vs. the Minimum Quantity and, if met, populates the Line Discount % field on the sales document line. It's not cumulative, where you can say at 12 calculate a 5% discount and on the 13th unit ordered calculate a zero % discount. There may be an add-on that does this, or perhaps we've already written something similar for another client that I'm not aware of. 

Adrian: Hi Trish, thanks for your ideas. I added a field "Line Disc Increment" to the Item Card to set the number of increment, and a field "Max Line Disc Qty" to the sales line to indicate the Maximum Quantity (calculated based on the increment) to which discounts would be applied. For example, the increment for item is 12. When we put 25 quantity on the sales line, the 5% discount is applied to the quantity of 24, and the total discount amount is $113.4 (24*94.5*5%). The line amount is $2249.1 (24*$94.5*95%+1*$94.5). 

An Odd Positive Pay Request

Gwendolyn: Positive Pay export: does anyone know how to filter out manual checks so they are not included in the Positive Pay export? 

Kyle: I think that may have to be a code change, or just suggest a different payment journal batch for each payment type. But why wouldn't you want manual checks included? The bank will still want the Positive Pay confirmation before processing the payment.

Gwen: I was thinking the same thing. Why wouldn't the bank want those as well? The client says they do not, but it's not sitting well with me. 

Developer Quip of the Day

Kyle: Programming is like writing a book, except if you leave out a semicolon on page 127, the entire story makes no sense.

Stay abreast of what is new in the Microsoft Dynamics NAV community and at ArcherPoint by subscribing to our monthly newsletter, Better Business, by completing the form in our Resource Center.

If you are interested in NAV development, be sure to see our collection of NAV Development Blogs.

Read the "How To" blogs from ArcherPoint for practical advice on using Microsoft Dynamics NAV.

Blog tags