Fix label
This commit is contained in:
@@ -507,9 +507,9 @@ TABLE "jobs_contract_message" CONSTRAINT "jobs_contract_message_contract_fkey" F
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case OFFER_EXPIRE: // note status 4
|
case OFFER_EXPIRE: // note status 4
|
||||||
logfmt(logINFO, "WrenchConcludeJobsOffer() rc=OFFER_CANCEL");
|
logfmt(logINFO, "WrenchConcludeJobsOffer() rc=OFFER_EXPIRE");
|
||||||
if (load_db_record(out, " SELECT id AS offer_id,* FROM members_jobs_offer WHERE offer_code ='%s' AND status = 1", in["offer_code"].c_str())) {
|
if (load_db_record(out, "SELECT id AS offer_id,* FROM members_jobs_offer WHERE offer_code ='%s' AND status = 1", in["offer_code"].c_str())) {
|
||||||
// valid load of offer needed
|
// valid load of offer needed
|
||||||
CVars y;
|
CVars y;
|
||||||
y["member_id"] = out["member_id"];
|
y["member_id"] = out["member_id"];
|
||||||
y["member_id"].set_valid(true);
|
y["member_id"].set_valid(true);
|
||||||
@@ -521,7 +521,6 @@ TABLE "jobs_contract_message" CONSTRAINT "jobs_contract_message_contract_fkey" F
|
|||||||
y["dir"].set_valid(true);
|
y["dir"].set_valid(true);
|
||||||
y["payment_id"] = out["payment_id"];
|
y["payment_id"] = out["payment_id"];
|
||||||
y["payment_id"].set_valid(true);
|
y["payment_id"].set_valid(true);
|
||||||
|
|
||||||
if (WrenchRefundoffer(y, out) == PHP_CREATED_OK) {
|
if (WrenchRefundoffer(y, out) == PHP_CREATED_OK) {
|
||||||
pgsql_exec("UPDATE members_jobs_offer SET status = 4 WHERE id = %lu AND offer_code='%s' ", out["offer_id"].Long(), in["offer_code"].c_str());
|
pgsql_exec("UPDATE members_jobs_offer SET status = 4 WHERE id = %lu AND offer_code='%s' ", out["offer_id"].Long(), in["offer_code"].c_str());
|
||||||
// REFUND THE MONEY
|
// REFUND THE MONEY
|
||||||
|
|||||||
Reference in New Issue
Block a user