The Line Item Detail - Last Cost field displays the Last Cost from the item's Inventory database record.
The Last Cost field on the Line Item Detail screen cannot be edited.
See:
Line Item Detail Screen Contents
Sales Manager Contents