For reference, I got a workaround by creating a workflow and updating a custom field on the sales order every time a fulfilment is saved
Handy references:
https://netsuite.custhelp.com/app/an…il/a_id/10580/
http://blog.prolecto.com/2015/08/16/…h-suitescript/
function onSave()
{
var tran_date = nlapiGetFieldValue('trandate');
var so_id = nlapiGetFieldValue('createdfrom');
var record = nlapiLoadRecord('salesorder', so_id);
var so_last_date = record.getFieldValue('custbody_so_last_fulfilment_ date');
if (tran_date > so_last_date || so_last_date == null) {
record.setFieldValue('custbody_so_last_fulfilment_ date', tran_date);
nlapiSubmitRecord(record);
}
return true;
}
Attached Files