AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Report De...
Lot Numbers beside ...
 
Notifications
Clear all

Questions Lot Numbers beside the Item Code

 
Acumatica Report Designer
Last Post by Noah 5 years ago
8 Posts
4 Users
3 Reactions
1,984 Views
RSS
vimal
Posts: 3
 vimal
Topic starter
June 4, 2020 12:33 am
(@vimal)
Active Member
Joined: 5 years ago

Hello Guys,

 

I have been trying to figure out a way to print the multiple lot numbers besides each Item Code (Without Repetition). I tried using variable and subreport but couldn't succeed. Looking for a better suggestion.

image

 

image
1111
2222

Topic Tags
Acumatica Report Designer
7 Replies
kevin.ruppert
Posts: 47
 kevin.ruppert
June 4, 2020 8:40 am
(@kevin-ruppert)
Trusted Member
Joined: 6 years ago

@vimal Welcome to AUGForums!

 

Are you trying to pull these into a new report or simply add them to a packing list or invoice or another form? The "issue" here is the way the data is stored and the many to one relationship that occurs for multiple allocations on the same line. Are you wanting these to be listed like LOT1, LOT2, LOT3 as opposed to the mulitple rows? Also, is the issue with the repetition that you are getting multiple lines of the item as opposed to a single item and then all the lots? Are you screens shots what you currently have or what you are trying to acheive?


Reply
vimal
Posts: 3
 vimal
Topic starter
June 4, 2020 9:13 am
(@vimal)
Active Member
Joined: 5 years ago

Hi Kevin,

 

Thanks for the response. Actually I have a requirement where Line Item having multiple Lot/Serial Numbers should not repeat in multiple times. Item code and description will appear once whereas the Lot/Serial numbers corresponding to the same item will appear beside the Item Description(Which could be many). As shown in the above screenshot, it is appearing in a single line but I want lot numbers and their respective quantity in different lines.

 

 


Reply
Kurt Bauer
Posts: 45
 Kurt Bauer
June 4, 2020 9:52 am
(@kurtybauer)
Trusted Member
Joined: 6 years ago

Like Kevin said the lot serial information is in multiple tables.  We had a similar request from a client who needed lot numbers on several different forms.  As a result I put together a custom SQL view to pull the lot/serial data from all tables based on the order type (normal sales order, direct IN order, or drop ship).  Below is the code for the SQL view to create a custom DAC and then add it as a subreport.  If you need more direction let me know and I can probably put together a customization package to share.

-Kurt

       SELECT O.CompanyID, O.OrderType, O.OrderNbr, O.LineNbr, O.InventoryID, O.ShipDate

              , O.InvtMult, O.Qty, O.LotSerialNbr, O.ExpireDate, O.ShipmentNbr, NULL AS 'ShipLineNbr'

       FROM SOLineSplit O

              LEFT JOIN SOShipLineSplit S ON S.CompanyID=O.CompanyID

                     AND S.OrigOrderType=O.OrderType

                     AND S.OrigOrderNbr=O.OrderNbr

                     AND S.OrigLineNbr=O.LineNbr

       WHERE O.CompanyID > 1

              AND (ISNULL(O.LotSerialNbr,'') <> '' OR ISNULL(O.ExpireDate,'') <> '')

              AND S.ShipmentNbr IS NULL

       UNION

       SELECT S.CompanyID, S.OrigOrderType, S.OrigOrderNbr, S.OrigLineNbr, S.InventoryID, S.ShipDate

              , S.InvtMult, S.Qty, S.LotSerialNbr, S.ExpireDate, S.ShipmentNbr, S.LineNbr AS 'ShipLineNbr'

       FROM SOShipLineSplit S

       WHERE S.CompanyID > 1

              AND (ISNULL(S.LotSerialNbr,'') <> '' OR ISNULL(S.ExpireDate,'') <> '')

       UNION

       SELECT RS.CompanyID, SS.OrderType, SS.OrderNbr, SS.LineNbr, SS.InventoryID, RS.ReceiptDate

              , RS.InvtMult, RS.Qty, RS.LotSerialNbr, RS.ExpireDate, RS.ReceiptNbr, RS.LineNbr

       FROM POReceiptLineSplit RS

              LEFT JOIN POReceiptLine RL ON RL.CompanyID = RS.CompanyID

                     AND RL.ReceiptNbr = RS.ReceiptNbr

                     AND RL.LineNbr = RS.LineNbr

              LEFT JOIN SOLineSplit SS ON SS.CompanyID = RL.CompanyID

                     AND SS.PONbr = RL.PONbr

                     AND SS.POType = RL.POType

                     AND SS.POLineNbr = RL.POLineNbr

       WHERE RS.CompanyID > 1

              AND (ISNULL(RS.LotSerialNbr,'') <> '' OR ISNULL(RS.ExpireDate,'') <> '')

              AND SS.OrderType = 'DS'


Reply
Noah
 Noah
(@nmri)
Joined: 5 years ago

Eminent Member
Posts: 21
October 17, 2020 9:37 pm
Reply toKurt BauerKurt Bauer

@kurtybauer

Thanks Kurt! Our company as well needs serial and lot numbers on most of our forms (Sales Order, Invoice, Shipping Confirmations, etc).  What I have been doing is hunting down the table that holds them and then adding and the tables and relationships to each form.  This has the downside of being dependent on where we are in the process activity of an order (serial numbers will print on the Sales Order until we confirm the shipment, etc).  Could this new DAC be used for other purposes, like generic inquiries? 

It sounds like the exact thing I have been thinking we need, but creating a DAC based on a SQL view is way over my head right now. Any chance you could publish a skeleton customization package?

Hopefully in a few months I'll be able to, but I'm still pretty green.  I'm still not even clear on the advantages of using subreports.  So I appreciate all this info already!  Thanks either way!  


Reply
vimal
Posts: 3
 vimal
Topic starter
June 4, 2020 10:16 am
(@vimal)
Active Member
Joined: 5 years ago

Thanks Kurt,

 

Will try this approach and will let you know if need any assistance.


Reply
Tim Rodman reacted
Kurt Bauer
Posts: 45
 Kurt Bauer
October 18, 2020 8:50 am
(@kurtybauer)
Trusted Member
Joined: 6 years ago

Here is a customization package that adds the SQL view and DAC.  This would be enough to use in an inquiry or report.

Thanks,

Kurt

LotSerial.zip

Reply
kevin.ruppert reacted
Noah
 Noah
(@nmri)
Joined: 5 years ago

Eminent Member
Posts: 21
October 18, 2020 10:03 pm
Reply toKurt BauerKurt Bauer

@kurtybauer

Thank you! This is great!


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Topic Tags:  Acumatica Report Designer (1) ,
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 47 Online
  • 2,338 Members
Our newest member: Shoaib Shafquat
Latest Post: Pick List report suddenly not splitting on Shipment
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×