December 15, 201312 yr For a reason I cannot explain the second print does not use the layout specified in the second goto related record. I do have one print for customer and another one for merchant. Both are different. However when executing the script I get two copies of the customer layout. I do not understand why. Is there something that I am missing ? Thanks! Daniel TSP100_InvoicePrinting.pdf
December 15, 201312 yr Author Got it to work by replacing the second goto related record to a goto layout"PRINT_MERCHANT_COPY". Thanks.
December 15, 201312 yr After the first print-out, you need to go back to the original layout, or the second Go to Related Record step doesn't have the correct context, so it's ignored, including its integrated layout switch. I don't know your setup, but I suspect that you're effectively printing the same record twice, only from a different layout; in this case you could simply switch layouts, since you're already on the correct record. Speaking of which: if you Set Error Capture [ On ], you might as well watch out for errors. What if you initiate the script and the current Invoice (I guess) has no related Facture record (yet)?
Create an account or sign in to comment