Docs
FinanceExpenses

Expense List

Find the expenses of drivers, vehicles, staff and the company, open the details, approve or reject them, edit, delete and export.

Finance > Expenses > Expense List (/finance/expense-list, page title Expenses Report) lists every expense the company has recorded. An expense is a cost of a driver, a vehicle, a staff member or the company, with a category, an amount, who paid and how.

The Expense List

Permissions

The page needs the Expense List permission. The actions you see depend on what the role may do:

Permission on Expense ListWhat it gives you
ViewThe page. Without the approve permission you only see your own expenses (the ones recorded for your employee record or created by you)
AddThe Create New button
EditEdit in the row menu and in the details window
DeleteDelete in the row menu and in the details window
ApproveApprove and Reject (for Pending expenses), the Employee filter, and the Delete button of the selection bar. It also lets you see the expenses of everyone

Tabs and counts

The tabs at the top filter by the owner of the expense: All, Driver, Vehicle, Staff and Company. Each tab shows how many of its expenses are Pending. The columns change with the tab (a Driver tab shows the driver and the vehicle, a Company tab shows the department).

The Driver tab

The Company tab

Search and filters

ControlWhat it does
SearchFinds an expense by the name of the employee
StatusAll Status, Pending, Approved, Rejected, Draft or Paid
DateA date range
CategoryOne or several categories (tick them in the list)
PaymentAll Payment Types, Cash, Card or Wallet
EmployeeOnly for roles with the approve permission: the driver, staff member or employee
VehicleOn the All, Driver and Vehicle tabs
Clear allAppears when a filter is active and removes all of them

The Status filter

The Payment filter

The Category filter

The Date filter

The filters and the sorting are applied by the server, so the page count and the total always match what you see. Click a column title to sort.

Columns

The View button (eye) lets you show or hide columns: Driver, Employee, Vehicle, Role/Department, Category, Amount, Payment Type, Paid By, Date and Status. The table also shows the Description and the Action menu.

The View menu

Status of an expense

StatusMeaning
PendingRecorded and waiting for approval. This is the status every new expense gets
ApprovedAccepted. It can now be deducted from the payroll of the employee
RejectedRefused. The page does not ask for a reason, so none is recorded
DraftNot submitted yet. The create form never makes a draft (a new expense starts as Pending), so a draft can only come from other sources. A draft can still be edited
PaidSettled

The row menu

The ⋯ button of a row, or a right click on the row, opens the menu:

ItemShown whenWhat it does
View DetailsAlwaysOpens the details window
HistoryThe row has a driverOpens the expense history of that employee
EditYou may editOpens the edit form
DeleteYou may deleteAsks for a confirmation
Approve / RejectThe expense is Pending and you may approveAsks for a confirmation

The row menu of a pending expense

The row menu of an approved expense: no Approve or Reject

Expense details

View Details opens the Expenses Details panel on the right, headed Created on <date>. At the top are four round buttons: View History, Edit, Delete and Close. Below them you see the status badge and the Total Expenses amount, then these sections:

SectionContent
Owner InformationOwner Type, Owner Name and Owner ID
Vehicle InformationBrand / Model and Plate Number / VIN, when the expense has a vehicle
Expenses InformationAmount, Expenses Category, Expenses Date, Payment Type and Description
Attachment / Proof of ExpenseEach file with View and Download, or No attachments
CreateCreated at and Created by
Review StatusWho reviewed the expense and when

A Pending expense also has a red cross and a green check at the top, and Reject and Approve buttons at the bottom of the panel, for roles with the approve permission.

The details of an expense

History

History opens History Expenses for the employee of the row: name and ID, Employee Informations (Departments, Role and an Expenses Frequency Level), a period list (This month by default) with a refresh button, the Total Expenses and Total Expenses Amount of that period, and a donut chart with the share, the number and the amount of each category.

The expense history of an employee

Approve and reject

Only an expense that is Pending can be approved or rejected from the menu, and only with the approve permission. Both dialogs name the expense (by the employee) and ask you to type the word approve or reject before the button is enabled; Close cancels. The rejection has no field for a reason: the expense is simply set to Rejected.

The approve confirmation

The reject confirmation

The server records who reviewed the expense and when. It refuses to approve an expense that is already approved or paid, and to reject one that is paid.

Approved expenses of an employee whose date falls in a period are taken into the Payroll Deductions batch of that period, except the ones paid by the driver. Charging expenses that come from a charging session are deducted through the session instead.

Edit an expense

Edit opens the form at /finance/expense/edit/<id>. The server only accepts changes to an expense that is Draft or Pending: for any other status it answers Cannot update expense with status … Only DRAFT or PENDING expenses can be updated. See Create Expense for what can be changed.

Delete

Delete asks Delete this expense permanently? and wants you to type delete. The expense is removed from every list and report, but the server only marks it as deleted (deleted_at): the record is not erased from the database. There is no check on the status, so an approved expense can be deleted too.

The delete confirmation

Select several expenses

Tick the boxes at the left of the rows. A bar appears at the bottom with the number of selected expenses and their total in AED. For roles with the approve permission it has a Delete button that removes all the selected expenses after a confirmation (a soft delete, like the single one). The page has no bulk approve or bulk reject button.

The selection bar

Export

Export opens Export Expenses (Export expenses within the selected date range as a CSV file): the Start Date is one month ago and the End Date is today by default; change them and click Export CSV. The file expenses.csv has the columns Employee, Department, Category, Amount, Payment Type, Paid By, Date and Status. It holds every expense of the date range: the tab, the search and the other filters of the page are not applied.

The export window

When nothing matches

No expenses found

The table says No Expenses Found and, with the add permission, offers Add Expense.