<?php

/**
 * PaintOps - Profit by Crew & by Worker (Pro) (2026-07-19, v1.0.105)
 *
 * Two rollups on the Profits dashboard, Mike's picks from the pre-launch
 * proposals: crews are the "lightweight" kind (a job's crew_id stamp; see
 * the cs_crews comment in paintops.php), and per-worker profit uses the
 * HOURS-SHARE method: a worker's slice of a job's profit = their logged
 * hours / all logged hours on that job (Time Clock + Job Financials
 * hours). A job with no logged hours falls back to an even split among
 * its assigned workers and is counted in the "estimated" column so the
 * owner knows how much of a worker's number is real vs assumed.
 *
 * Money math all comes from paintops_job_financial_summary() (the canonical
 * profit function, job-financials-addon.php); this file only aggregates.
 * Per-job summaries are an N+1 loop, the same documented pattern as the
 * classification report and rankings, bounded by the LIMIT below.
 */
if ( !defined( 'ABSPATH' ) ) {
    exit;
}
// end paintops_fs()->is__premium_only()