Hi! Does anybody can suggest how to skip some item...
# suitescript
y
Hi! Does anybody can suggest how to skip some item in Invoice sublist from printing via SuiteScript?
b
do it in the template: Skipping items conditionally
otherwise use TemplateRenderer.addCustomDataSource to make your own data without your items
y
Hi @battk! thanks for answer! Digging into sublists I found "noprint" feild. Can it help?
sv = rec.getSublistValue({
sublistId: 'item',
fieldId: 'noprint',
line: 5
});
false
message has been deleted
b
you can try, but i personally wouldnt expect to be able to set any field you wouldnt be able to from the ui