offer process
This commit is contained in:
@@ -1631,8 +1631,6 @@ long WrenchSendJobsOfferGroup(CVars in, CVars &out) {
|
||||
|
||||
long offer_id = 0;
|
||||
out = in;
|
||||
|
||||
|
||||
CVars x;
|
||||
CVars y;
|
||||
CVars z;
|
||||
@@ -1692,6 +1690,20 @@ long WrenchSendJobsOfferGroup(CVars in, CVars &out) {
|
||||
|
||||
logfmt(logINFO, "Price = %lu Balance = %lu", y["price"].Long() * total_member, z["amount"].Long());
|
||||
|
||||
if (total_member > 2 ){
|
||||
// REQ_LONG(in, "member_id", 1, -1);
|
||||
// REQ_LONG(in, "job_id", 1, -1);
|
||||
// REQ_LONG(in, "group_id", 1, -1);
|
||||
// //REQ_STRING (in, "email", 1, 59, "(.*)");
|
||||
// REQ_STRING(in, "job_description", 1, 5000, "(.*)");
|
||||
CVars jj;
|
||||
jj["member_id"] = in["member_id"]; jj["member_id"].set_valid( true );
|
||||
jj["job_id"] = in["job_id"]; jj["job_id"].set_valid( true );
|
||||
jj["group_id"] = in["group_id"]; jj["group_id"].set_valid( true );
|
||||
jj["job_description"] = in["job_description"]; jj["job_description"].set_valid( true );
|
||||
out["planned_offer_id"] = insert_db_record(DBS_VALID, "group_offer_schedule", "group_offer_schedule_id_seq", jj);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
const PGresult *res = pgsql_query("SELECT email FROM members_job_groupmember "
|
||||
|
||||
Reference in New Issue
Block a user