After task accepted return

This commit is contained in:
CHIEFSOFT\ameye
2024-09-30 22:42:54 -04:00
parent 4ed753c86d
commit 7e7e789fd8
+4
View File
@@ -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;