BasisBasis
Settings

Audit Trail

A log of every deleted voucher — showing who deleted it, when, and the reason given. Admin and Owner access only.

Menu: Settings → Audit Trail · Route: /admin/audit-trail

How It Works

Basis uses an immutable voucher design. When a voucher is deleted, the system:

  1. Saves a complete JSON snapshot of the voucher (all header fields, line items, GL entries, and stock movements) to the VoucherArchive table.
  2. Records the deleting user's ID, the deletion timestamp, and the reason given.
  3. Hard-deletes the voucher row and all its child records from the active tables.

The Audit Trail page reads from the archive to show every deletion. Edits are also archived (with reason Edited) before the voucher is recreated with updated data.

The archive cannot be cleared through the UI. Every delete and edit is permanently recorded. This gives you a tamper-evident history of all changes.

Audit Trail Columns

ColumnNotes
Deleted AtDate and time the voucher was archived (UTC). Shown in red to indicate the record is removed from active transactions.
NumberThe original document number (shown with strikethrough to indicate it no longer exists).
TypeVoucher type, e.g., SalesInvoice, Payment, JournalEntry.
Doc DateThe original document date of the voucher (not the deletion date).
PartyCustomer or supplier name, if applicable. Blank for journal entries and contra entries.
Delete ReasonThe reason the user entered when confirming the deletion. Blank if no reason was given.

Filtering Records

Use the From and To date pickers to filter the audit trail by deletion date. By default, the current month is shown. Click Search to apply the filter, or Clear to reset.

Audit trail