Skip to main content
Answer

How to Group Items By Lot Serial on Report Writer/Report Designer

  • October 31, 2023
  • 11 replies
  • 323 views

Forum|alt.badge.img

We have a report that prints the pack list along with Lot Serial Nbr. Currently the items on a shipment are repeating multiple times because the items are located on multiple locations.  

 

Current Output

How can we display items along with lot serial number, total shipped qty but not have it split these lines based on location? 
We currently have it grouped by Sales Order Nbr and Order type.  

 

 

I have also attached the rps file of the report for reference. Thank you for the help in advance! 

Best answer by Robert Sternberg

Hi @kanupindi 

Please take a look at the attached, I have highlighted the section footer in green which only prints once per lot/serial group.  Notice how the detail section prints for every shipment line. 

To finalize this solution you will need to:

  1. Set detailSection1 to Visible = False, this will hide the ‘duplicates’
  2. Remove the green backcolor from groupFooterSection3 under Properties>Style>Backcolor
  3. Follow my example on the QTY. ORDERED column to create an aggregate total for your group when necessary. (QTY. SHIPPED, QTY. BACKORDERED)
  4. Update the NO. Column to more accurately describe the group(s) line nbrs. 

 

11 replies

Robert Sternberg
Captain II
Forum|alt.badge.img+7

Hi @kanupindi can you share how you would like the lot/serial number to appear.  Are you expecting a single line with the lot/serial numbers listed, separated by commas?

Inventory ID Qty Lot/Serial Nbr
Invt001 3 0001, 0002, 0003

 

If not could you provide a quick mockup similar to the above of what you are looking for?

 

Thanks!


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • October 31, 2023

Hi @Robert Sternberg,

thank you for your response. It should look something like this below: 

Inventory ID Lot Serial Nbr Shipped Qty
123 001 463
123 002 500
456 003 412
456 005 320
897 004 140

 


Robert Sternberg
Captain II
Forum|alt.badge.img+7

Please try adding a group by of [SOShipLineSplit.LotSerialNbr]

If you need help please upload an rpx file rather than an rps file.  More info on this here - https://www.augforums.com/acumatica-rps-versus-rpx-file-types/


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • October 31, 2023

Hi @Robert Sternberg
We did try grouping by lot serial nbr but that did not work. Is there a different way we can try? I have attached the rpx file below. The reason why they are duplicating is because of different locations

Below is a snapshot from our database. We also grouped by Lot Serial, Location and Inventory ID on the report and that did not work either. 

 

thank you!


Robert Sternberg
Captain II
Forum|alt.badge.img+7

Hello, thanks for the file, you are seeing this because you are still reporting in the detail (ungrouped section) of the report, if you move your fields into a grouped section you will only see one result line per group.  Do not put anything in the detail section unless you want it to print ungrouped results.  


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • November 1, 2023

Hi @Robert Sternberg , that did not work. It is still duplicating items like the ones below : 

 


Robert Sternberg
Captain II
Forum|alt.badge.img+7

Hi @kanupindi 

Please take a look at the attached, I have highlighted the section footer in green which only prints once per lot/serial group.  Notice how the detail section prints for every shipment line. 

To finalize this solution you will need to:

  1. Set detailSection1 to Visible = False, this will hide the ‘duplicates’
  2. Remove the green backcolor from groupFooterSection3 under Properties>Style>Backcolor
  3. Follow my example on the QTY. ORDERED column to create an aggregate total for your group when necessary. (QTY. SHIPPED, QTY. BACKORDERED)
  4. Update the NO. Column to more accurately describe the group(s) line nbrs. 

 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • November 2, 2023

Hi @Robert Sternberg  , thank you very much for your help. Looks like it worked with a few changes! 


robgriffin00
Jr Varsity II
Forum|alt.badge.img
  • Jr Varsity II
  • March 14, 2024

This was an excellent example to help me solve a similar problem on T&M project invoices - thank you.


  • Freshman I
  • August 21, 2024

Hi @kanupindi can you share how you would like the lot/serial number to appear.  Are you expecting a single line with the lot/serial numbers listed, separated by commas?

Inventory ID Qty Lot/Serial Nbr
Invt001 3 0001, 0002, 0003

 

If not could you provide a quick mockup similar to the above of what you are looking for?

 

Thanks!

Hi @Robert Sternberg can we do it in report designer with separated by commas


Robert Sternberg
Captain II
Forum|alt.badge.img+7

Hi @rsheikh78 

 

Please create a new variable in the details section.  Call the new variable $CSVLotSerial, for the value formula use Concat($CSVLotSerial, ‘, ’, [SOShipLineSplit.LotSerialNbr]) with a reset group of ItemLot and a reset expression of =’’. 

 

Replace the field where you would like to see the CSV values with $CSVLotSerial