my unit of measure is empty on my invoice.
because i imported these invoices before i applied unit of measure on my item record.
now that i have added unit of measure on my item record.
the invoice still show empty UoM. i notice when i manually click edit and select the line item. it auto post source the preferred sales UoM.
now how do i go about doing this for 1000+ invoices.
is my only choice to csv import these UoM back in.
or can i write a suitelet script/mass update script that will select the sublist item and let it refresh...like what i did manually.
i've tried writing a script.
var record = nlapiLoadRecord(rec_type, rec_id);
var list = record.getSubList('item');
as soon as i add
list.getLineItemCount();
it spits out a syntax error. i was thinking i could write a script that just select all the lines, and let it refresh, then submit the record again. i know this would work for a client-side script, but i would have to click edit on every single record.