fix bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user