Discussions
Help Setting Price Level Values
Hi all,
My company has multiple product lines with various pricing structures that requires us to have a long list of Price Levels on our items in NetSuite. We had a 3rd party write a script that updates some of these price levels prior to me being hired. This script sets the pricing using the function item.setLineItemMatrixValue() (See snippet of Screen Shot below):
[ATTACH=CONFIG]n347539[/ATTACH] [ATTACH=CONFIG]n347609[/ATTACH]if(item!=null){
nlapiLogExecution('DEBUG', 'UpdatePricing',
'Updating Price Level for item id: ' + updateableItem.getId());
item.setLineItemMatrixValue('price1', 'price', 40, 1, DISCOUNT4060);
item.setLineItemMatrixValue('price1', 'price', 41, 1, DISCOUNT4555);
item.setLineItemMatrixValue('price1', 'price', 42, 1, DISCOUNT5050);