Charles Halliday
04/25/2018, 7:33 PMfunction validateLine(context) {
var currentRecord = context.currentRecord;
var sublistName = context.sublistId;
var recordType = currentRecord.type;
if(recordType === 'customer' && sublistName === 'addressbook'){
// var billToCheck = currentRecord.getCurrentSublistValue('addressbook', 'defaultbilling');
// var shipToCheck = currentRecord.getCurrentSublistValue('addressbook', 'defaultshipping');
// if(billToCheck && shipToCheck){
// alert('Uncheck default billing flag');
// return false
// }
return true;
}
}