starting from the IF
# suitescript
c
starting from the IF
b
create a search on your item fulfillment with the item, line id, line sequence number, applied to transaction, applied to link type
also include the applied to transaction : line id and appied to transaction : line sequence number
you should be able to see the relationship between the fulfillment line and sales order line using those columns