Since nlapiGetRecordType() returns null, one can check if the checkbox field 'Make Inventory Available' is not null.
var recordType = nlapiGetRecordType();
if (!recordType) {
var aLocationField = nlapiGetFieldValue("makeinventoryavailablestore");
if (aLocationField) {
recordType = "location";
}
}
No comments:
Post a Comment