$total_lodged = $_->qcs_document_count() - $client_job_spoil->hb_Local_spoils;