Item Group and Kit We have products sold as a bun...
# general
l
Item Group and Kit We have products sold as a bundle with a bundled price but may be fulfilled separately. So we are trying to build a customisation that will automatically allocate pro-rata the bundled price (custom field) of the Item Group to the components upon SAVE (server script) on a sales order. But we are getting errors like "You cannot edit the end of group line. You must delete the group when saving record." although we have a logic to only allocate the bundled price to the components and not to the End of Group line. Another error if dynamic mode is used, we get this error: "SSS_INVALID_SUBLIST_OPERATION. - You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist." Are item group MEMBERS not really scriptable on the server side?
d
I implemented a similar functionality some months before. Each component of my item group had a percentage and when I add the price on a custom line field, the components inherit it based on their percentage. The error NetSuite is giving you, is because your logic is updating pricing fields on end line.
l
That's interesting. Thank you. Let me get back to you on that.
@Damree Ilyaad if it's okay, would you be able to share the script? Or at least a snippet of it? Thank you.
d
@Luis Sorry for late reply. I dont have it unfortunately. But its quite easy. You need a custom line field e.g Amount to split. You fill that line field on the start line. Then you click on a button on the transaction (without saving), which will loop and split the amount based on each item's percentage then of course clear the custom line field.