Solved

First and Last (MIN, MAX) LotSerialNbr in SubReport

  • 25 March 2024
  • 4 replies
  • 37 views

Userlevel 4
Badge

I have a SubReport that lists the LotSerialNbr’s of items in a SubReport. The goal is to just list the beginning and ending LotSerialNbr’s (MIN, MAX) as listing all of the number would be too cumbersome. The main manufactured item would be the same but with different qtys of 1 to higher numbers (such as 400, or 500). The first number may be 210324001381, 210324001382, 210324001383, 210324001384 and maybe higher, so all we would need is the 210324001381 - 210324001384.

icon

Best answer by wmatthews1877 1 April 2024, 11:45

View original

4 replies

Userlevel 4
Badge

One other issue, since in this particular case there are only four like items, the numbers are being repeated for four lines down such as:

210324001381 210324001384

210324001381 210324001384

210324001381 210324001384

210324001381 210324001384

and the first line would be the only thing needed.

 

Userlevel 3
Badge

@wmatthews1877

Can you share you Subreport file in a .Zip file so we can evaluate how it is configured?

Userlevel 4
Badge

Better yet, I managed to figure it out myself and have included it with this post.

=MIN([AMProdItemSplit.LotSerialNbr]) + ' - ' + MAX([AMProdItemSplit.LotSerialNbr])

The same concept is used in SQL Server coding.

Userlevel 7
Badge

Thank you for sharing your solution with the community @wmatthews1877!

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved