I've got 4 custom forms for Invoices. They are used to print differently formatted parts for different groups within the company. One goes to the customer, another goes to our internal group.
Right now, to print the Customer Invoice AND Job Ticket, the workflow looks like this:
[LIST=1]
[*]Open Invoice
[*]Click Edit
[*]Change Form (customform) to Invoice (or confirm that it is set to that)
[*]Hit Save & Print
[*]Save PDF
[*]Click Edit
[*]Change Form to Job Ticket
[*]Hit Save & Print
[*]Save PDF
[/LIST]
I'd like to create two custom buttons, one that prints the Invoice, one that prints the Job. If I could integrate both into one button, I would.
I think I can do this in SuiteScript, but it involves hackery (mucking with the hotprint.nl which was suggested as bad here: https://usergroup.netsuite.com/users/showthread.php?t=430&highlight=hotprint though if you view source you can see the show_preview() javascript function which handles the printing), and I'm hoping not to do this now and have it break in the future.
If I did it in SuiteScript, the script would save the current customform for the invoice, set it to Invoice, open a new window to the hotprint.nl URL, set the customform to Job Ticket, open a new window to the hotprint.nl URL, then set customform back to the original setting. There's gotta be a better way.
Any suggestions to help this workflow?