Skip to main content
Answer

Custom Kit Assembly Report Duplicating subreport

  • July 27, 2023
  • 3 replies
  • 162 views

Forum|alt.badge.img

I have been building a custom Kit Assembly report for my company to use and have it all set up the way I like it. However, it will repeat the “stock-items” sub report for as many items that are in the stock items.

I feel like I’m missing something simple, I tried to set it up similarly to how fs641000.rpx works, with sub reports for stock items and non-stock items (stock items also has a sub report in it for lot/serials).

think the problem is with the sub report for stock items (KA207013.rpx). I have tried the grouping but keep getting the duplicates


Any help would be greatly appreciated!

Best answer by lauraj46

Hi @rmillerKimball ,

The problem is that you have joined both INComponentTran and INKitSpecStkDet.  You may not need INKitSpecStkDet in the schema.  The INComponentTran details the component on the specific kit assembly record, whereas INKitSpecStkDet is based on the standard kit specification.  Because you have multiple detail tables, you will end up with a cross join creating duplicate records.

If you want to separate the stock from the non stock items you should be able to use the field INComponentTran.IsStockItem.

Hope this helps!

Laura

3 replies

Forum|alt.badge.img

Update: Here is a General Inquiry with the same issue, probably easier to diagnose than the report(s).

Side-question. How to make my parameter empty? Used to be =NULL but that now just puts in NULL ever since 2022R2 update...


lauraj46
Captain II
Forum|alt.badge.img+8
  • Captain II
  • Answer
  • July 27, 2023

Hi @rmillerKimball ,

The problem is that you have joined both INComponentTran and INKitSpecStkDet.  You may not need INKitSpecStkDet in the schema.  The INComponentTran details the component on the specific kit assembly record, whereas INKitSpecStkDet is based on the standard kit specification.  Because you have multiple detail tables, you will end up with a cross join creating duplicate records.

If you want to separate the stock from the non stock items you should be able to use the field INComponentTran.IsStockItem.

Hope this helps!

Laura


Forum|alt.badge.img

Hi @lauraj46,

That makes perfect sense! I was just trying to mirror the Kit Assembly screen fields, which brings in INKitSpecStkDet to show the Component Qty.

Maybe I’ll create another sub-report to add component Qty to the line next to my stock items sub report. 

Thank you!!