Add network_agent_id in wallet infos v2

This commit is contained in:
Djery-Tom 2021-12-22 10:50:28 +01:00
parent 9f48eef0f3
commit feb253ed9a
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ class WalletController extends Controller
public function show($id_wallet)
{
// $wallet = Wallet::findOrFail($id_wallet);
$wallet = collect(DB::select('SELECT wa.wallet_id AS id, wa.balance_princ, wa.balance_com, wa.created_date, wa.network , cw.taux_com_client_depot, c.name AS country, cw.type,
$wallet = collect(DB::select('SELECT wa.wallet_id AS id, wa.balance_princ, wa.balance_com, wa.created_date, wa.network , cw.taux_com_client_depot, c.name AS country, cw.type, wa.networks_agent_id as network_agent_id,
c.currency_code , cw.id_network , cw.has_nano_credit FROM wallet_agent wa INNER JOIN configWallet cw ON wa.network_id = cw.id_network INNER JOIN networks n ON n.id = wa.network_id
INNER JOIN countries_currencies c ON c.id = n.country_id
WHERE wa.wallet_id = :id', ['id' => $id_wallet]))->first();