Purchase related expenses

I have purchased 100
bag of sugar on credit from X. $10 each bag total cost of $1000. To get this
sugar on my warehouse I have paid $1 transportation to Y Transport. Now my
question is how I could adjust this purchased related expenses with this
inventory.
thank you

Create a purchase invoice showing purchase from X: Create purchase invoices | Manager.

Create another payment or purchase invoice for Y, allocating to same inventory item, but leave quantity at zero. See: Add freight-in to inventory item costs | Manager.

Result will be to add to average cost but not increase quantity.

thank you