REFUND ESCROW
This commit is contained in:
@@ -106,10 +106,15 @@ long WrenchContractStatus( CVars in, CVars &out )
|
||||
if (ret)
|
||||
{
|
||||
if ( out["jobs_contract_id"].Long() > 0 ){
|
||||
logfmt( logINFO, "~~~~ ~~~~~ WrenchContractStatus() CONTRACT_REQUEST_CANCEL****************");
|
||||
logfmt( logINFO, "~~~~ ~~~~ WrenchContractStatus() REFUND THE ESCROW_CANCEL****************");
|
||||
logfmt( logINFO, "~~~~ ~~~~ WrenchContractStatus() REFUND THE ESCROW_CANCEL****************");
|
||||
logfmt( logINFO, "~~~~ ~~~~ WrenchContractStatus() REFUND THE ESCROW_CANCEL****************");
|
||||
logfmt( logINFO, "~~~~ ~~~~~ WrenchContractStatus() CONTRACT_REQUEST_CANCEL****************");
|
||||
pgsql_exec("UPDATE members_jobs_contract SET status = %lu,updated=now() "
|
||||
" WHERE id = %lu",CONTRACT_REQUEST_CANCEL, in["job_id"].Long() );
|
||||
" WHERE id = %lu",CONTRACT_REQUEST_CANCEL, out["jobs_contract_id"].Long() );
|
||||
if ( load_db_record( out, "SELECT * FROM members_jobs_contract WHERE status = %lu "
|
||||
" AND id=%lu AND client_id =%lu",CONTRACT_REQUEST_CANCEL,in["contract_id"].Long(),in["member_id"].Long() ) )
|
||||
" AND id=%lu AND client_id =%lu",CONTRACT_REQUEST_CANCEL,in["contract_id"].Long(),in["member_id"].Long() )>0 )
|
||||
{
|
||||
project_email(CONTRACT_REQUEST_CANCEL, in, out);
|
||||
out["result"] = "We have notify the task owner of your request for cancellation.";
|
||||
|
||||
Reference in New Issue
Block a user