Sohan Kumar Dash
04/09/2024, 4:19 PMupdateLine
method of the Cart
component.
In the Extensibility API documentation, it says that the updateLine
method ignores all other parameters except internaid
& quantity
but in reality, it throws an error when you try to add/update any custom transaction line field.
This issue has been occurring since the release of 2023.2.0 of SCS/SCA where NetSuite has added a separate code block to compare the line options while updating a line item that caused this issue.
@Steve Goldberg @Flo It would be great to have a new method for the Cart
component to add/update line option fields in the next major release.
ThanksSteve Goldberg
04/09/2024, 4:57 PMupdateLine()
method and now it doesn’t work?Steve Goldberg
04/09/2024, 4:58 PMSteve Goldberg
04/09/2024, 5:01 PMSohan Kumar Dash
04/10/2024, 3:36 PMupdateLine
method was successfully saving custom transaction line field values, but it stopped that process in v2023.2.
The documentation neither mentions supporting that action nor will it cause any errors for other passed parameters.Sohan Kumar Dash
04/10/2024, 3:37 PMcostcol1
a custom transaction line field (not a transaction option field)?Steve Goldberg
04/10/2024, 3:44 PMSohan Kumar Dash
04/10/2024, 4:13 PMSteve Goldberg
04/10/2024, 5:01 PMSohan Kumar Dash
04/12/2024, 3:24 PMSteve Goldberg
04/12/2024, 3:45 PMSohan Kumar Dash
04/12/2024, 3:50 PMthis.application.getComponent('Cart').updateLine({
line: {
internalid: 'item1109set11'
, quantity: 1
, options: [
{
"cartOptionId": "custcol_ag_special_instrcut"
, "value": {"internalid": "Test", "label": "Test"}
}
]
}
})
.catch(function(error){
console.warn(error);
})
Steve Goldberg
04/12/2024, 4:37 PMSohan Kumar Dash
04/12/2024, 4:42 PM