This article refers to “Location” and “Department”. Your domain may have different labels due to custom organizational categories.
Navigate to Settings → Customize AP Bill Form
Select Add New Field
Fill in the fields: field name, Location, Department, and Account Code
Once all of the fields are filled in, click Create
You will see the newly created Custom Fields in the Add Cost drop-down when creating a Bill.