solution: TypeError: newrecord.getValue is not a function ,this error occurs when we tries to get the value of a custom field in DELETE context of after submit function.
In order to resolve this issue we can use oldRecord.getValue. Since we are trying to delete an oldrecord that is modified.
var itemFulfillmentId = scriptContext.oldRecord.getValue({
fieldId: 'custbody_jj_fulfillment_id'
});