This commit is contained in:
CHIEFSOFT\ameye
2024-07-20 14:13:58 -04:00
parent 25190cbde0
commit 642e09045e
+1 -1
View File
@@ -534,7 +534,7 @@ long WrenchJobsInterestStats(CVars in, CVars &out) {
load_db_record(out, "SELECT count(id) AS total_complete FROM members_jobs_contract WHERE client_id = %lu AND status =7", out["client_id"].Long()); //pending jobs
if ( out["total_complete"].Long() > 0 ){
load_db_record(out, "SELECT count(id) AS total_jobs FROM members_jobs_contract WHERE client_id = %lu AND ststus IN (7,4,5)", out["client_id"].Long()); //pendi
load_db_record(out, "SELECT count(id) AS total_jobs FROM members_jobs_contract WHERE client_id = %lu AND status IN (7,4,5)", out["client_id"].Long()); //pendi
sprintf(buf, "%.2f %", 100* out["total_complete"].Long() / out["total_jobs"].Long());
out["job_percent_complete"] = buf;
}