total
This commit is contained in:
@@ -328,7 +328,7 @@ long do_transferPayment(CVars in) {
|
||||
CVars wl;
|
||||
if ( load_db_record(wl, "SELECT w.*,c.country,w.amount,w.id AS wallet_id from members_wallet w LEFT join currency c ON c.code=w.currency"
|
||||
" WHERE c.country='%s' AND w.member_id=%lu AND w.uid='%s' ",in["terminating_country_code"].c_str(), in["member_id"].Long(),in["wallet_uid"].c_str())> 0){
|
||||
if ( LongTotalCost > wl["amount"].Long() )
|
||||
if ( total > wl["amount"].Long() )
|
||||
{
|
||||
out["status_message"] = "insufficient_balance_error";
|
||||
out["status_text"] = "insufficient balance for transaction";
|
||||
|
||||
Reference in New Issue
Block a user