Standard Payments & Commission Lifecycle

1. Purpose & Audience

This page defines how standard (non-recurring, non-shared) client payments are recorded in the BackOffice CRM, how commission is calculated, aggregated, and invoiced to Users, and which control mechanisms ensure that all relevant payments are declared and settled correctly.

It is intended for Developers implementing or modifying payment and commission logic, Users (lawyers and other professionals) who must record payments and understand their commission statements, and Admin staff who oversee invoicing, collections, and financial reporting.

2. Scope & Non‑Scope

This section covers:

It does not cover:

3. Core Concepts & Definitions

3.1 Payment

A payment is any monetary amount that a client pays to a User (or to AA where applicable) in respect of a specific client record and its associated Enquiry Type (ET). In BackOffice, payments are stored in the Payments tab of the client record and form the basis for commission calculation.

3.2 Commission

Commission is the fee that AA charges a User or provider, calculated as a percentage of the ex‑VAT amount of the payments declared for a client. Commission rates are driven primarily by ET configuration in Laravel, with possible overrides per User and per provider.

3.3 Commission Base (Ex‑VAT)

The commission base is the taxable amount on which AA’s commission percentage is applied. The system assumes that VAT charged by the User to the client is excluded from the commission base. Where a User declares an amount that includes VAT, Admin may need to correct the amount so that only the ex‑VAT portion contributes to commission.

3.4 User vs Admin

A User is a lawyer or other professional who handles client work and records payments in BackOffice. Admin refers to Advocate Abroad internal staff who configure ETs and commission rules in Laravel, create blocking tasks, monitor unpaid commission, and issue or manage invoices.

3.5 Provider / Agency

A provider or agency is an organisation configured in Laravel that can send multiple clients and has its own commission structure and payment/invoicing settings. For standard payments, the logic for calculating AA’s commission per payment is the same, but aggregation and statements can be at provider level as well as per individual User.

4. Data Model Overview

4.1 BackOffice Client & Payments

4.2 Laravel Commission Configuration

4.3 Aggregation & Invoicing Data

5. Declaring Standard Payments in BackOffice

5.1 Accessing the Payments Tab

Within a BackOffice client record, the Payments tab is one of the standard tabs in the top tab bar. Only Users and Admin with appropriate permissions can add, edit, or delete payment entries.

5.2 Payment Entry Fields

A typical payment row includes at least the following fields:

5.3 Validation Rules

5.4 Status Impact of Payments

When the User has finalised the service being provided to the client and the total commissionable payments declared for a client reaches the agreed fee, Users are expected to move the client status from Ongoing to Completed. Some flows enforce this by presenting a completion popup summarising recorded payments and asking the User to confirm that the amounts match what was actually paid.

In some configurations, adding the first commissionable payment automatically changes the status from Created Lead to Ongoing or similar, to reflect that work has commenced and fees have been received.

6. Commission Calculation Logic

6.1 Determining the Commission Rate

When AA refers a client directly to a User (no prior referral from another User), the standard commission rate is 20% of the net (ex‑VAT) amount paid by the client to that User.

When a client is referred by one User to another User, the standard commission rate for the referred enquiry is 30% of the net amount paid by the client to the “referred to” User. Of that 30%, the “referring” User receives 50% as a referral share (i.e. 15% of the client’s net payment), and AA retains the remaining 15%.

6.2 Commission Base and Amount

For each commissionable payment, the commission base is the ex‑VAT amount declared. The system multiplies the base by the applicable commission rate to compute the commission amount for that payment. Commission amounts are rounded according to local accounting rules (typically to two decimal places).

6.3 Partial and Staged Payments

When clients pay in stages (e.g. provision of funds followed by final payment), Users create a separate payment entry for each amount received. The system calculates commission per payment and accumulates these amounts for the period. If a User mistakenly declares the same payment twice, Admin must remove or correct the extra line; otherwise, commission would be overstated.

6.4 Non‑Commissionable Payments

Some payments, such as pure disbursements or third‑party expenses, are recorded for completeness but should not attract commission. These entries are created with the commissionable flag set to false. They appear in the Payments tab for the client but are excluded from commission summaries and invoices.

7. Control System for Payment Declaration

7.1 Blocking Tasks

Admin can create blocking tasks in BackOffice that prevent a User from accessing other client records until a specific action is completed. One of the main blocking task types is “Add Payment”, which is used when AA knows or strongly suspects that the User has received fundsfrom a client but has not yet declared them in the Payments tab.

When a blocking Add Payment task exists, the User is presented with a popup on login or when opening another client and is redirected to the relevant client record to declare the payment. After they add the payment and mark the task as complete, normal navigation is restored.

7.2 Status Change Checks

When Users attempt to change status to Completed or Closed, the system can display a confirmation popup summarising the total payments recorded for the client. If the User enters a “total paid” that does not match the sum of payments, a warning is shown and the User is encouraged to review the Payments tab before continuing.

In some flows, status change is blocked entirely until at least one payment has been declared, to avoid Completed cases with zero payments.

7.3 Dashboards & Lists Highlighting Missing Payments

Admin dashboards can display lists of clients where:

These lists help Admin identify potential under‑reporting of payments and trigger manual follow‑up with Users.

7.4 Notification Emails to Users

When Admin creates or updates blocking tasks or when commission invoices remain unpaid, the system can send notification emails to Users. Typical notifications include:

8. Commission Aggregation & Cut‑Off

8.1 Aggregation Period

Commission is typically aggregated on a monthly basis, although quarterly or other periods are possible if configured. All commissionable payments with a payment date within the aggregation period and declared before the cut‑off date are included in the statement for that period.

8.2 Cut‑Off Rules

The cut‑off date is the point at which the system stops adding payments to the current period’s commission batch. For example, if invoices are issued on the first Friday of the month, all payments in the previous calendar month that have been declared up to that Friday are included. Late declarations may be carried to the next period or, in special cases, handled by manual adjustment.

8.3 Grouping by User and Provider

The aggregation process groups payments by:

Each group forms the basis for one invoice or statement issued to that party.

9. Invoicing Commission to Users

9.1 Invoice Generation

Certain Enquiry Types have a fixed commission rate of 20% regardless of whether the client came via a referral. For those Enquiry Types, if another User has referred the client, the referrer still receives 50% of the commission, but the split is applied to the fixed 20% rate (i.e. 10% of the client’s net payment to the “referred to” User for the referrer, and 10% for AA).

9.2 Invoice Contents

A standard commission invoice includes at least:

In many cases, a detailed statement is attached or accessible in the User’s dashboard, listing each client, ET, payment amount, commission rate, and commission amount.

9.3 Delivery & User Access

Invoices are delivered via email to the User’s registered address and may be accessible in a “Commission Statements” or similar section of the User dashboard. Users are expected to pay the invoice by the due date using the provided bank details.

9.4 Overdue Invoices

When an invoice is not paid by the due date, the system can:

10. User & Admin UI Behaviour

10.1 User View

Users interact primarily with:

10.2 Admin View

Admin users have additional views and actions, including:

11. Edge Cases & Known Pitfalls

11.1 Incorrect VAT Handling

A common issue is Users entering the total amount received from the client, including VAT, as the commissionable amount. This leads to over‑charging of commission. Admin should correct such entries by reducing the commissionable base to the ex‑VAT amount and, if necessary, adjusting any already issued invoices via credit notes (documented under 7.4).

11.2 Duplicate Payments

Duplicate payment rows can occur if a User creates a new payment entry instead of editing an existing one. The system cannot reliably detect all duplicates, so Admin should periodically review payment lists for anomalies (e.g. same amount and date appearing twice) and instruct Users to correct errors.

11.3 Zero or Missing Payments on Completed Cases

If a case reaches Completed or Closed status with no payments recorded, dashboards or reports may highlight it as a potential issue. Admin should follow up with the User to confirm whether the client never paid or whether the payment has not yet been declared.

12. Configuration Points (Laravel)

12.1 Commission Settings per User

In Laravel, each User profile has a Commission Settings section, where Admin can define:

12.2 Commission Settings per ET

Each ET configuration in Laravel includes:

12.3 Provider Settings

Provider records in Laravel define:

13. Process Flow: Lead to Commission

13.1 High‑Level Steps

  1. Lead captured and assigned: Website form submission creates a client record in BackOffice with an ET and assigned User; status is New Enquiry or Awaiting Assignment.
  2. Service delivered: User communicates with the client, sends quotations, and carries out agreed work. Status moves through Created Lead, In Progress, and Waiting for Response as appropriate.
  3. Client payment received: User receives payment from the client (advance, lump sum, or staged) and records each payment in the Payments tab as a commissionable entry.
  4. Commission computed: For each commissionable payment, the system determines the applicable commission rate and calculates commission. These values are stored and visible in relevant reports.
  5. Status completion: When work is complete and fees have been fully received, the User changes status to Completed and, if applicable, confirms payment totals in a popup.
  6. Aggregation & invoicing: At period end, commission amounts per User are aggregated, invoices are generated, and Users receive commission invoices and statements.
  7. Payment of commission: Users pay AA’s invoice. Overdue invoices trigger reminders and potential operational restrictions until resolved.

14. Testing & QA Considerations

When implementing or modifying payment and commission logic, testers should verify at minimum:

15. Open Questions & Future Enhancements


Revision #1
Created 2026-02-19 13:31:17 UTC by Stephen Mc`Grath
Updated 2026-02-19 15:02:08 UTC by Stephen Mc`Grath