After task accepted return
This commit is contained in:
@@ -1145,6 +1145,10 @@ long WrenchConcludeJobsOffer(CVars in, CVars &out) {
|
||||
pgsql_exec("UPDATE members_jobs_offer SET status = 5 WHERE id = %lu AND offer_code='%s' ", offer_id, in["offer_code"].c_str());
|
||||
pgsql_exec("UPDATE members_payments SET what_contract = %lu WHERE what_offer = %lu ", contract_id, offer_id);
|
||||
job_email(JOBS_OFFER_ACCEPT_MAIL, in, out); // note the email will come from contract table now
|
||||
/*
|
||||
READ OUT THE CONTRACT
|
||||
*/
|
||||
load_db_record(out, "SELECT id AS contact_id, uid as contract_uid,contract FROM members_jobs_contract WHERE id = %lu", contract_id);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user