简体   繁体   中英

NetSuite- Advanced PDF Template, How Can I get Each Item's Component Information Through Salesorder Record

I am trying to customize a pdf template so I can print my own Picking Ticket. I can get all salesorder's information/data by use ${record.[fieldId]}, and I can also get all items' general/header information in the current salesorder's record using ${item.[fieldId]}. However, can anyone tell me how to get each item's components list through "item.[...]"

I tried to use "item.member", where member is the components list of each item, and it always said "item.member" is not a sequence or list.

Any idea? Thanks,

You don't need record - just use ${item.[field]}

You'll notice in the source code at the start of the item list table it has <#list record.item as item>

You can print this information with NetSuite's new Saved Search printing feature that was released in 2017.1. Make an item saved search with Member Item being one of the results. Then create a template from the saved search with the "New Template" button. Use this tag somewhere in your document:

${result.memberitem}

See SuiteAnswers article "Advanced Templates for Printing Saved Search Results" if you want to learn how to print all results on one page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM