Understand gross-margin calculation
Read the module’s direct job margin formula.
Exact navigationAdmin Area → Courier & Logistics → Jobs → Open job → Finance summary
What this guide covers
Read the module’s direct job margin formula. The instructions below follow the supplied module’s controller, form and model rules, including server-side validation and downstream effects.
Exact step-by-step process
- Open the job.
- Verify revenue, driver cost and other costs.
- Recalculate the arithmetic independently.
- Correct the source record rather than editing a report output.
Fields, choices and supported possibilities
Agreed revenueFinal saved revenue for the job.
Driver costCalculated or manually overridden assignment amount.
Other costsExpenses/other job-linked costs.
Gross marginAgreed revenue − driver cost − other costs.
Code-backed validations and workflow rules
- Use the supported screen and permission; do not bypass validation or edit database records directly.
Expected result and verification
- The source record, status/history and any downstream notification, provider, POD or finance record should agree after the action.
Security, audit and operational checks
- Use the exact record and least-privilege role before changing any state.
- Verify the saved record after every action; a browser message alone is not evidence that every downstream step completed.
- Use protected document and image routes rather than exposing server filesystem paths.
- Keep customer, driver, provider, financial and credential data within the authorised workflow.
- For provider, finance, employment, transport and compliance decisions, follow the organisation’s authorised professional process.
Do not bypass the code flowDo not force database values, invent a status, mark a job completed without signed POD evidence, or expose encrypted credentials to make a screen appear successful.
