Skip to main content
Solved

First and Last (MIN, MAX) LotSerialNbr in SubReport

  • March 25, 2024
  • 4 replies
  • 106 views
  • Translate All

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.

View original

4 replies

Forum|alt.badge.img+1

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.

 

Translate

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

@wmatthews1877

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

Translate

Forum|alt.badge.img+1

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.

Translate

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

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

Translate