Docs
FinanceExpenses

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.

The Add Expense form

Step 1: Expense Owner

Choose who or what the expense belongs to. The fields below change with the owner:

Expense OwnerFieldsRule
Staff (default)Staff NameThe employee must not be a driver
DriverDriver Name, Vehicle (plate number, VIN)The employee must be a driver
VehicleVehicle, Driver NameThe vehicle must belong to your company
CompanyDepartment, Staff NameThe 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.

The Driver layout

The Vehicle layout

The Company layout

Step 2: the expense

Each EXPENSE # card is one expense.

FieldRequiredNotes
Expenses DateYesToday by default, format DD/MM/YYYY
Expenses CategoryYesOnly 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)
AmountYesIn AED, more than 0
Payment ByYesDriver, Staff, Fleet Manager or Company: who paid. Driver means the driver paid out of their own pocket
Payment TypeYesCash, Card or Wallet. It applies to every expense of the form
DescriptionNoFree text
FilesNoDrop or Add File: images and PDF files are allowed

The details of an expense

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, ...

Two expenses in one form

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 Edit Expense form

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.