XochisSketches
02/20/2020, 6:21 PMbattk
02/20/2020, 6:24 PMbattk
02/20/2020, 6:25 PMbattk
02/20/2020, 6:25 PMXochisSketches
02/20/2020, 6:39 PMXochisSketches
02/20/2020, 6:40 PMbattk
02/20/2020, 6:43 PMXochisSketches
02/20/2020, 6:44 PMfunction itemReceiptPDF(type, form) {
if (type == 'view')
{
var recID = nlapiGetRecordId();
var suiteletURL = nlapiResolveURL('SUITELET', 'customscript_mn_ir_pdf_suitelet', 'customdeploy1');
suiteletURL += '¶m1=' + recID;
var script = "window.open(nlapiResolveURL('SUITELET', 'customscript_mn_ir_pdf_suitelet', 'customdeploy1') + '¶m1=nlapiGetRecordId()');"
form.addButton('custpage_viewpdf', 'Print', script);
}
}
XochisSketches
02/20/2020, 6:45 PMbattk
02/20/2020, 6:46 PMbattk
02/20/2020, 6:46 PMbattk
02/20/2020, 6:46 PMbattk
02/20/2020, 6:46 PMbattk
02/20/2020, 6:47 PMXochisSketches
02/20/2020, 6:50 PMXochisSketches
02/20/2020, 6:50 PMbattk
02/20/2020, 6:50 PMbattk
02/20/2020, 6:52 PMXochisSketches
02/20/2020, 6:56 PMbattk
02/20/2020, 6:59 PMbattk
02/20/2020, 7:00 PMbattk
02/20/2020, 7:00 PMXochisSketches
02/20/2020, 7:04 PMXochisSketches
02/20/2020, 7:25 PMfunction itemReceiptPDF(type, form) {
if (type == 'view')
{
var recID = nlapiGetRecordId();
var suiteletURL = nlapiResolveURL('SUITELET', 'customscript_mn_ir_pdf_suitelet', 'customdeploy1');
suiteletURL += '¶m1=' + recID;
form.addButton('custpage_viewpdf', 'Print', 'resolvePDFSuitelet()');
}
}
function resolvePDFSuitelet() {
window.open(nlapiResolveURL('SUITELET', 'customscript_mn_ir_pdf_suitelet', 'customdeploy1') + '¶m1=' + nlapiGetRecordId());
}
XochisSketches
02/20/2020, 7:25 PMbattk
02/20/2020, 7:30 PMXochisSketches
02/20/2020, 7:37 PMbattk
02/20/2020, 7:41 PMbattk
02/20/2020, 7:41 PMXochisSketches
02/20/2020, 10:29 PMbattk
02/20/2020, 10:48 PMXochisSketches
02/20/2020, 10:58 PMXochisSketches
02/20/2020, 10:58 PMbattk
02/20/2020, 11:02 PMbattk
02/20/2020, 11:03 PMbattk
02/20/2020, 11:03 PMbattk
02/20/2020, 11:04 PM