This article demonstrates how an item's base price can be retrieved through scripting.
function getBasePrice(type){var filter = new Array();var column = new Array(); filter[0] = new nlobjSearchFilter('internalidnumber', null, 'equalto', '149'); //replace with item's internal ID column[0] = new nlobjSearchColumn('baseprice', null, null); var results = new nlapiSearchRecord('item', null, filter, column); for (var i = 0; i < results.length; i++) { nlapiLogExecution('DEBUG', 'Base Price', results[i].getValue(column[0])); } }
No comments:
Post a Comment