no refund

This commit is contained in:
CHIEFSOFT\ameye
2024-09-23 10:36:50 -04:00
parent 222e593e3e
commit eeed3bb32a
+6 -5
View File
@@ -1218,15 +1218,16 @@ long WrenchConcludeJobsOffer(CVars in, CVars &out) {
}
}
if ( offer_result == OFFER_NOREFU){
logfmt(logINFO, "********* NO REFUND ************* NO REFUND WrenchConcludeJobsOffer() rc=FOUND");
pgsql_exec("UPDATE members_jobs_offer SET status = 4 WHERE id = %lu AND offer_code='%s' ", offer_id, in["offer_code"].c_str());
}
if (WrenchRefundoffer(y, out) == PHP_CREATED_OK) {
pgsql_exec("UPDATE members_jobs_offer SET status = 4 WHERE id = %lu AND offer_code='%s' ", offer_id, in["offer_code"].c_str());
// REFUND THE MONEY
//job_email(JOBS_OFFER_CANCEL_MAIL, in, out); // the email will come from offer table
}
// if (WrenchRefundoffer(y, out) == PHP_CREATED_OK) {
// pgsql_exec("UPDATE members_jobs_offer SET status = 4 WHERE id = %lu AND offer_code='%s' ", offer_id, in["offer_code"].c_str());
// // REFUND THE MONEY
// //job_email(JOBS_OFFER_CANCEL_MAIL, in, out); // the email will come from offer table
// }
}
break;