From 095c0ee9cc675b03cf0c0bd2a5feeb2246f532b3 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 27 Jul 2023 05:09:22 -0400 Subject: [PATCH] total --- wrenchboard/src/shared_tool/smoney.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";