Prevent error “You cannot edit the end of group line. You must delete the group.” when setting the transaction line values

Scenario: when trying to set transaction line value in sales order in the item sublist. Solution: The received error is the standard error that occurs in the case Sublist Items includes Item with Item Type Item Group. Exclude End Group from processed lines.   for (let i = 0; i < lineCount; i++) {  … Continue reading Prevent error “You cannot edit the end of group line. You must delete the group.” when setting the transaction line values