Description of the issue
I am configuring a custom label to print one label per receipt line for purchase order receipts (product receipt journal).
However, when using VendPackingSlipJour as the root table, the system only prints the first receipt line, regardless of how many lines exist.
Additionally, when I configure VendPackingSlipTrans as the root table, the label design is no longer available as a print option from the product receipt journal.
Data source configuration
- Root table:
VendPackingSlipJour
- Joins used:
VendPackingSlipJour_1 → VendPackingSlipTrans_1
VendPackingSlipTrans_1 → PurchTable_1
PurchTable_1 → PurchLine_
The goal is to iterate through each VendPackingSlipTrans record and generate one label per receipt line.
Observed behavior
- Only one label is generated, corresponding to the first receipt line.
- Additional receipt lines are not printed.
- When
VendPackingSlipTrans is set as the root table, the label layout does not appear as an available print option in the product receipt journal.
Expected behavior
- The system should generate one label per receipt line (
VendPackingSlipTrans) for the selected receipt.
ZPL currently used:
CT~~CD,~CC^~CT~
^XA
^CI27
^PW831
^LL609
^LS0
^LH20,20
^FO0,14^A0N,38,38^FD$InventTable_1.itemName()$^FS
^FO0,70^A0N,30,30^FD$PurchTable_1.OrderAccount$ / $PurchTable_1.PurchName$^FS
^FO0,110^A0N,26,26^FDN. ALBARAN:^FS
^FO260,110^A0N,26,26^FD$VendPackingSlipJour_1.PackingSlipId$^FS
^FO0,230^A0N,26,26^FDPRODUCTO:^FS
^FO260,230^A0N,26,26^FD$VendPackingSlipTrans_1.ItemId$^FS
^XZ
I would appreciate your guidance on how to correctly configure the data source or label logic so that all receipt lines are iterated and a label is printed for each one, while still allowing the layout to be printed from the product receipt journal.