I have a rather strange situation that may or may not have an answer. I’ve reached out to the Report Design community before and while there have been some very good responses, none of them are working for what we are trying to accomplish. We have International and Domestic Invoices. One in a while the International invoices will have a free item (Item A) on it along with an associated LotSerialNbr. If there is a similar item (Item A) that is also on the invoice that is a purchased item(s), then the LotSerialNbr of the purchased item and free item are listed together (which we are pulling from a subreport), and the free item will also show the paid item LotSerialNbr along with it’s own. I’ve tried using two different subreports, using a condition, ARTran.IsFree = True for the free item, or ARTran.IsFree = False. I have tried ARTran LEFT with SOShipLine and so far have not been very successful. I am attaching the main (SO643000.rpx) and the two subreports (SO6430C8Sub.rpx, SO6430C9Sub.rpx) but if possible, I would like to use only one subreport. I have been able, most of the time, and by changing the (Collections) of SO6430C8Sub.rpx to work with normal or freebie, but not both. Our International invoices always start with an INT and Domestic INV. I am also attaching a worksheet with what I’ve been able to see how the data joins and such are for the normal and freebie in conjunction with the subreport(s). This may not be the correct place for this type of question, but I’ve exhausted all other avenues trying to piece this together. Our VAR helped us initially with the subreport to pull the LotSerialNbr’s in from the subreport, but there is no way that anyone could have foreseen two identical InventoryID’s on the same invoice, one free, the other paid.
Answer
LOTSERIALNBR'S AND FREE ITEMS
Best answer by wmatthews1877
Hi lauraj46,
The main report and subreport are working as expected. The LineNbr scheme was the key to it, but not with the LineNbr’s that we thought. I am attaching the zip file in case anyone else runs into a similar issue. The report is working for both the free item(s) and normal invoice. The zip file has all the details as far as what LineNbr’s and joins are being used. Thank you and the other members that contributed your inputs to help with this issue.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.




