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
thank you

Create a purchase invoice showing purchase from X: https://www.manager.io/guides/how-to/creating-purchase-invoices.

Create another payment or purchase invoice for Y, allocating to same inventory item, but leave quantity at zero. See: https://www.manager.io/guides/how-to/allocating-freight-in-to-the-cost-of-inventory-items-when-purchasing.

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

thank you