currency
This commit is contained in:
@@ -1026,7 +1026,7 @@ long WrenchContractPayment( CVars in, CVars &out )
|
||||
return PHP_API_BAD_PARAM;
|
||||
}
|
||||
CVars y;
|
||||
if ( load_db_record( y, "SELECT * FROM members_payments WHERE code ='OFDPS' AND confirmation IS NOT NULL AND status=1 AND flags=4 AND what_contract= %lu AND member_id =%lu",contract_id,in["member_id"].Long() ) )
|
||||
if ( load_db_record( y, "SELECT * FROM members_payments WHERE code ='OFDPS' AND confirmation IS NOT NULL AND status=1 AND flags=4 AND what_contract= %lu AND member_id =%lu",contract_id,in["member_id"].Long() ) > 0 )
|
||||
{
|
||||
payment_id = y["id"].Long();
|
||||
offer_id = y["what_offer"].Long();
|
||||
@@ -1045,7 +1045,7 @@ long WrenchContractPayment( CVars in, CVars &out )
|
||||
}
|
||||
|
||||
CVars vw;
|
||||
vw["currency"] = "NAIRA"; // this might become a variable based on the country
|
||||
vw["currency"] = y["currency"]; //"NA-IR-A"; // this might become a variable based on the country
|
||||
vw["currency"].set_valid( true );
|
||||
long wallet_id = CheckWallet(in["member_id"].Long(),vw);
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user