Hello People, When I print a customer statement, ...
# advancedpdf
a
Hello People, When I print a customer statement, I want the pdf to also include the print of all the transactions that are shown in statement. So if I print a customer statement for a single month which of a customer which has 3 transactions in that month, I want the pdf file to include the customer statement + all three transactions pdf all merged into one. Can someone please help me get started on this?
s
The only option to do this would involve scripting. You’d have to generate the statement PDF, but also dynamically find and generate the PDF’s for all transactions on the Statement. Alternatively, you could uses searches or queries to get the data, and then generate something that looks like a Statement + Transactions combined PDF. This is not an easy task, and there’s no standard functionality that can do this. Just curious, why do you need something like this? This will be a lot of effort.
a
We generate monthly invoices to the customers which can include the adjustments from prior months which we are showing by creating Credit Memos. We want to send them a single document that contains their previous balance, the monthly invoice details, and the adjustment details if there are any.
s
Sure, i can understand how it is useful. Unfortunately, NetSuite doesn’t provide any standard feature to generate a PDF like that, so you’d have to resort to a fully custom scripted solution.
you could explore other options, like attaching them all as separate PDF’s (Invoice + Statement + Credit memos). alternatively, you could look into customer center, which gives customers direct access to their own open invoices and credits, in a self-service way (it’s an upgrade you’d have to purchase from NetSuite, though)
a
I worked on writing a map reduce script to do what is needed. So far, I am able to get the required data in my script. I have customer internal id as key in reduce stage and for that key, I have array of transaction internal ids of transactions which I want to merge together. Do you have any idea on how can I create a PDF file that takes multiple transaction records, generate PDF for them using a specific template that I have customized and concatenate it with the statement that I am generating in my code?
190 Views