+ Update countries list fields
This commit is contained in:
parent
fa17741c6c
commit
2ecf785ca3
|
@ -21,7 +21,7 @@ class HelperController extends Controller
|
||||||
|
|
||||||
public function countries()
|
public function countries()
|
||||||
{
|
{
|
||||||
$countries = DB::select('SELECT id , name , code_dial FROM countries_currencies WHERE id IN (
|
$countries = DB::select('SELECT id , name , code_dial , code_country FROM countries_currencies WHERE id IN (
|
||||||
SELECT distinct c.id FROM networks n INNER JOIN countries_currencies c ON n.country_id=c.id INNER JOIN configWallet cw ON cw.id_network = n.id WHERE status = 1
|
SELECT distinct c.id FROM networks n INNER JOIN countries_currencies c ON n.country_id=c.id INNER JOIN configWallet cw ON cw.id_network = n.id WHERE status = 1
|
||||||
);');
|
);');
|
||||||
return $this->successResponse($countries);
|
return $this->successResponse($countries);
|
||||||
|
@ -31,6 +31,10 @@ class HelperController extends Controller
|
||||||
{
|
{
|
||||||
$networks = DB::select('SELECT n.id , n.name , c.type FROM networks n INNER JOIN configWallet c ON c.id_network = n.id WHERE n.id IN ( SELECT distinct id_network FROM paying_networks )
|
$networks = DB::select('SELECT n.id , n.name , c.type FROM networks n INNER JOIN configWallet c ON c.id_network = n.id WHERE n.id IN ( SELECT distinct id_network FROM paying_networks )
|
||||||
AND status = 1 AND country_id = :id;',['id'=>$id_country]);
|
AND status = 1 AND country_id = :id;',['id'=>$id_country]);
|
||||||
|
foreach ($networks as$network){
|
||||||
|
if($network->type == 'ilink')
|
||||||
|
$network->type = 'ilink-world';
|
||||||
|
}
|
||||||
return $this->successResponse($networks);
|
return $this->successResponse($networks);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,9 +49,11 @@ Transaction information:
|
||||||
Transaction information:
|
Transaction information:
|
||||||
- Transaction ID : :id_transaction
|
- Transaction ID : :id_transaction
|
||||||
- Amount of the transaction : :amount
|
- Amount of the transaction : :amount
|
||||||
|
- Country of departure: :init_country
|
||||||
- Net amount of the country of departure : :net_init
|
- Net amount of the country of departure : :net_init
|
||||||
|
- Country of destination: :final_country
|
||||||
- Net amount of the destination country : :net_final
|
- Net amount of the destination country : :net_final
|
||||||
- Fees : :fees
|
- Fees + Tax : :fees
|
||||||
- Tax : :tax
|
- Number of the sending wallet: :sender_code
|
||||||
- Recipient wallet code : :code',
|
- Number of the recipient wallet: :receiver_code',
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue