Found this in suiteanswers :
function userEventBeforeLoad_mandatory(type, form, request){
var sublistobj = nlapiGetSubList('line');
var memofield = sublistobj.getField('memo');
memofield.setMandatory(true);
Just need changing to Department (Line) field and deploying on Journal