Hello everyone,
I ran into some issues with my script, this mostly only occurs after the order has been billed, fulfilled or both.
When I first tested, I was only using inventory items and not considering a sales order that is composed of an item group, that is already billed and fulfilled.
I get this popup
- Items on this line have been drop shipped or special ordered. Are you sure you want to modify this item
- Items on this line have been billed. Are you sure you want to modify this item
When this occurs, we are forced to click the messages out numerous times and it hinders order processing. If I have a fully processed SO that contains 5 items, but needed to revisit or replace items, on the pageinit of my script - the popup message occurs am forced to click out of the messages 10 times.
Is there a way for me to prevent these messages from popping up? I was unable to find any information in the docs about ignoring the messages.
If I happen to have an end of group Item, I will get this error message.
- You cannot edit the end of group line. You must delete the group (end of line group item)
In this case, I created a name variable:
var name = currRecord.getCurrentSublistValue({ sublistId: 'item', line: i, fieldId: 'name'});
The value for the end of group returned as 0, I tried to write a condition that if the name is 0, to return true. I also tried the cancelLine method but was unsuccessful at and I was still selected at end of group and could only cancel out.