creece
06/04/2018, 7:29 PMcreece
06/04/2018, 7:29 PMfkrauthan
06/04/2018, 7:29 PMfor (let i = 0; i < clientAccounts.length; i++) {
log.debug({title: 'Trying to Match', details: {
hasNetsuiteAccount: clientAccounts[i].netsuiteAccount,
accountIdOne: clientAccounts[i].netsuiteAccount.id,
accountIdTwo: accountId,
match: clientAccounts[i].netsuiteAccount.id === accountId,
}});
if (clientAccounts[i].netsuiteAccount && clientAccounts[i].netsuiteAccount.id === accountId) {
matchingAccount = true;
break;
}
}
for some reason it always reads the first value of the array rather then iterating thru itjarens
06/04/2018, 7:29 PMcreece
06/04/2018, 7:29 PMfkrauthan
06/04/2018, 7:30 PMcreece
06/04/2018, 7:30 PMjarens
06/04/2018, 7:30 PMfkrauthan
06/04/2018, 7:30 PMreptar
06/04/2018, 7:33 PMreptar
06/04/2018, 7:33 PMerictgrubaugh
06/04/2018, 8:02 PMerictgrubaugh
06/04/2018, 8:03 PMerictgrubaugh
06/04/2018, 8:03 PMfkrauthan
06/04/2018, 8:17 PMerictgrubaugh
06/04/2018, 8:25 PMbrett.wilson
06/04/2018, 8:34 PMal3xicon
06/04/2018, 8:34 PMal3xicon
06/04/2018, 8:34 PM<pdfset>
is what you wantbrett.wilson
06/04/2018, 8:36 PMal3xicon
06/04/2018, 8:37 PMalien4u
06/04/2018, 8:37 PM<pdfset>
as @al3xicon mention work well for doing that... however I was only able to make it work saving the file to the file cabinet as available without login and using the URL with PDF Set...brett.wilson
06/04/2018, 8:38 PMalien4u
06/04/2018, 8:40 PMal3xicon
06/04/2018, 8:42 PMbrett.wilson
06/04/2018, 8:42 PMal3xicon
06/04/2018, 8:42 PM<pdfset>
you get <pdf src="{url}">
, so in theory you could instead have code inside of the <pdf>
to render but i haven't tried ital3xicon
06/04/2018, 8:43 PMrender.transaction()
brett.wilson
06/04/2018, 8:44 PMbrett.wilson
06/04/2018, 8:44 PM