@ajitsj - you may want to read this topic Multiple Currency Purchase Invoice
Whilst you may not have multiple currency, it illustrates how “freight-in” from a separate supplier is entered and then transferred to the purchase invoice of the Inventory Items supplier.