Hello, Im trying to set the price field on an item...
# suitescript
i
Hello, Im trying to set the price field on an item but get the following error
Copy code
Please enter missing quantity level(s)
This is the code
itemRecord.selectLine({
sublistId: 'price1',
line: 1,
});
itemRecord.setCurrentMatrixSublistValue({
sublistId: 'price1',
fieldId: 'price',
column: 1,
value: 15.99,
});
itemRecord.commitLine({ sublistId: 'price1' });
Well, found what was doing wrong, when trying to set the base price, apparently the matrix position, is (0,0)