My objective is to print labels based on the total quantity of items on a Sales Order. For example, if I sell 15 items on a Sales Order, I would like 15 labels to print. The label is identical for all items.
If there was a quantity of 1 for each line item, this would not be a problem. However, it is possible that the quantity for each line item may vary. E.g. On one Sales Order, I may sell 3 Blue Notebooks and 5 Ballpoint pens. Because all 3 Blue Notebooks are identical, they would be listed together in one line item with a quantity of 3. Same for the pens.
Therefore, I have two line items (i.e. Detail section only runs twice) with a total qty of 8. This means I would like 8 labels to print.
I need to find a way to find a sum of the total qty of items on the Order (easy part), and automatically print this number of labels (hard part). As mentioned, there is only one label type to print...the same label will print regardless of the item.
I had 2 different ideas, but am not sure how to implement either one if it is possible.
1) I was wondering if there was a function to set the "Number of Copies" to print as set in the Printer Setup. If so, is it possible to calculate the sum first, prior to starting to print, set the "# of Copies", then print the correct # of labels?
2) Can I use a subreport? This would involve calculating the qty sum in the main report and passing this total to the subreport where the labels would print based on this sum. If this is possible, how can I tell the subreport to loop through and print the correct number of times?
3) Any other ideas?
Thanks for any assistance!
If there was a quantity of 1 for each line item, this would not be a problem. However, it is possible that the quantity for each line item may vary. E.g. On one Sales Order, I may sell 3 Blue Notebooks and 5 Ballpoint pens. Because all 3 Blue Notebooks are identical, they would be listed together in one line item with a quantity of 3. Same for the pens.
Therefore, I have two line items (i.e. Detail section only runs twice) with a total qty of 8. This means I would like 8 labels to print.
I need to find a way to find a sum of the total qty of items on the Order (easy part), and automatically print this number of labels (hard part). As mentioned, there is only one label type to print...the same label will print regardless of the item.
I had 2 different ideas, but am not sure how to implement either one if it is possible.
1) I was wondering if there was a function to set the "Number of Copies" to print as set in the Printer Setup. If so, is it possible to calculate the sum first, prior to starting to print, set the "# of Copies", then print the correct # of labels?
2) Can I use a subreport? This would involve calculating the qty sum in the main report and passing this total to the subreport where the labels would print based on this sum. If this is possible, how can I tell the subreport to loop through and print the correct number of times?
3) Any other ideas?
Thanks for any assistance!