If I debug the “sonata stats” query, the query that is accessed is the cdr table and this account code should be displayed in the stats and billing report
debug query
select source AS extension, uniqueid AS date, billsec from `cdr` where uniqueid BETWEEN '1668704400' AND '1668790799' and `calltype` in (3) and `source` in ('201', '202') and `tenant` = 'vitalpbx'