Hey Everyone! Hope y'all doing well! Quick Q: hav...
# suitescript
k
Hey Everyone! Hope y'all doing well! Quick Q: have you ever generated multiple PDFS from single purchase orders if PO has multi-location ? if so how did you handle ?
e
You can #list and by location add a page break
k
We need multiple PDFs by location rather than single
Each PDF will have its own Shipment number like PO7483L1, PO7483L2
e
Sorry, read wrong. You can do this via a custom process, a Suitelet - make your own “Print” button (in UE on PO) and then open a Suitelet that goes ahead and generates a number of files, attaches them to this PO
Would be a lot simpler to just have 1 po per location though
but that’s more of a business decision (or the vendor’s)
k
Agree but our team wants to have master PO
So how can I split PO into multiple PDFs
e
When you want to print it, is it via a button press or on save? either way, trigger a process that pulls up the PO, gets the lines by location into an object, then craft your PDF via N/render for each location, and voila
use N/render and save separate files to the cabinet
you can then use the record attach to get the files
k
I would give Button shot and have stored or send an email with multiple attachments
how do I create render ?
should I just have pdf code in string and pass data as object in ?
e
you need to review the N/render module, which lets you render as pdf (based on template provided in xml)
k
Noted. wanted to confirm before anything take action. Thank you EC
e
👍
k
Suite Answer: 97238
Probably, this article works