Is there a setting to only allow an item to be add...
# general
m
Is there a setting to only allow an item to be added to a transaction if it is in an Item Group? I have a service item / inventory item pair that always sell together. I'd like it to be impossible to add them individually, but add them through an item group
a
Can try this: Create a custom item field that is a check box with field name something like "Cannot Be Added On Its Own". Then create a transaction line field with the same name, sourcing from that custom item field. Then create a workflow, show error when the transaction having line item added with that line field checked. - Not sure if workflow can reach all the transactions' lines you are targeting at. If not, need some light scripting to validate line.
👍 1
m
Thank you. I'll check it out. I was hoping there was a setting I was unware of, but this doesn't sound difficult
m
Similar to the above idea but without a workflow, if you use the checkbox on the item field as a filter on a search set as the 'Item Filter' on the custom form setup (found on the
Sublist Fields
tab), those items shouldn't be possible to add on their own but that validation seems to be skipped if the item is added as part of an item group. That's how we've done it, but beware that it will cause an issue if you create a transaction with an affected item group in a server script, so it's not a perfect solution.
m
@MTNathan - Finally got around to trying your suggestion. I did not know about sublist filters on forms!!!!!!! Been working in NetSuite since 2013...... This worked exactly like I wanted. Thank you
👍 1