It's nice to see you here, @db2828,
I've tried the steps you've mentioned and got the correct posting on the Profit and Loss report. I will share the steps below so you can try it on your company file.
Step 1: Create the bill for the Building Expense. It should look like this:

Step 2: Create the vendor credit for vehicles.

Step 3: Apply the credit as payment on the bill.
- Open the bill and choose Pay Bill.
- On the payment window, pick Set Credits.

- Choose the credit from the Discount and Credits window.
- Press Done.

- Hit Pay Selected Bills.
On the Profit & Loss report, the credit will reduce Vehicles expense. See this:

To show you the detail of the transactions, see them here:
Transaction List for Vehicles Expense (Credit)

Transaction List under Building Expense (Bill)

Let me know how it goes for you. I'll be right here if you have any other questions with QuickBooks. Have a nice day!