Create Expense
Record one or several expenses for a driver, a vehicle, a staff member or the company, with receipts, and edit an expense that is still pending.
Finance > Expenses > Create Expense (/finance/expense/add) records one or more expenses in a single form. You can also reach it with Create New on the Expense List. It needs the add permission on Expense List.

Step 1: Expense Owner
Choose who or what the expense belongs to. The fields below change with the owner:
| Expense Owner | Fields | Rule |
|---|---|---|
| Staff (default) | Staff Name | The employee must not be a driver |
| Driver | Driver Name, Vehicle (plate number, VIN) | The employee must be a driver |
| Vehicle | Vehicle, Driver Name | The vehicle must belong to your company |
| Company | Department, Staff Name | The department is required |
When you pick a vehicle, the Auto-Fill Data block shows its Brand / Model, Vehicle Type, Year Model, Plate Number, VIN Number and Insurance Provider (read-only).
The four layouts and the owner list are described in the table above: Staff asks only for the staff member, Driver asks for the driver and the vehicle, Vehicle asks for the vehicle and the driver, and Company asks for the department and the staff member. Changing the owner keeps the expenses you already typed but re-checks which categories are allowed for that owner.



Step 2: the expense
Each EXPENSE # card is one expense.
| Field | Required | Notes |
|---|---|---|
| Expenses Date | Yes | Today by default, format DD/MM/YYYY |
| Expenses Category | Yes | Only the categories that are active and allowed for the owner type are offered. The Add link beside it creates a category (only for roles with the approve permission, see Expense Categories) |
| Amount | Yes | In AED, more than 0 |
| Payment By | Yes | Driver, Staff, Fleet Manager or Company: who paid. Driver means the driver paid out of their own pocket |
| Payment Type | Yes | Cash, Card or Wallet. It applies to every expense of the form |
| Description | No | Free text |
| Files | No | Drop or Add File: images and PDF files are allowed |

The files are uploaded as soon as you choose them; if one fails, the message Failed to upload <name> appears.
Several expenses at once
Add Another Expense adds another card. Every card has the same owner and the same Payment Type, and its own date, category, amount, Payment By, description and files. The bin at the top right of a card removes it. The last button counts them: Create 1 Expense, Create 2 Expenses, ...

Save
The Create ... Expense(s) button stays disabled until the form is valid: an owner, the employee (and department or vehicle where the layout asks for one), and for every card a date, a category and an amount above 0. After saving you see N expense(s) created successfully and you return to the Expense List. Every new expense starts as Pending. Cancel goes back without saving.
If the server refuses (for example Selected employee is not a driver or Selected employee is a driver, not staff), the page says Failed to create expense.
Editing an expense
Edit on the list opens the same form at /finance/expense/edit/<id> with the title Edit Expense and one card. The owner, the employee and the vehicle are shown but cannot be changed. You can change the date, the category, the amount, the Payment Type, the description and the files; Payment By is shown but is not sent when you save. The button is Save Changes, and the message is Expense updated successfully.

The server only accepts the change while the expense is Draft or Pending. After approval, rejection or payment it answers Cannot update expense with status … and the page says Failed to update expense.