diff --git a/wrenchboard/src/shared_tool/smoney.cc b/wrenchboard/src/shared_tool/smoney.cc index dde1d16a..c5d51f04 100644 --- a/wrenchboard/src/shared_tool/smoney.cc +++ b/wrenchboard/src/shared_tool/smoney.cc @@ -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";