Skip to main content
Solved

First and Last (MIN, MAX) LotSerialNbr in SubReport

  • March 25, 2024
  • 4 replies
  • 58 views

Forum|alt.badge.img+1

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.

Best answer by wmatthews1877

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.

4 replies

Forum|alt.badge.img+1
  • Author
  • Semi-Pro I
  • 156 replies
  • March 25, 2024

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.

 


mbarrett
Jr Varsity III
Forum|alt.badge.img+1
  • Jr Varsity III
  • 10 replies
  • March 29, 2024

@wmatthews1877

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


Forum|alt.badge.img+1
  • Author
  • Semi-Pro I
  • 156 replies
  • Answer
  • April 1, 2024

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.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 3296 replies
  • April 1, 2024

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