diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php
index 733ab575ccba..9b39f64d3774 100644
--- a/app/Http/Controllers/AccountController.php
+++ b/app/Http/Controllers/AccountController.php
@@ -500,7 +500,7 @@ class AccountController extends BaseController
'title' => trans('texts.online_payments'),
'tokenBillingOptions' => $tokenBillingOptions,
'currency' => Utils::getFromCache(Session::get(SESSION_CURRENCY, DEFAULT_CURRENCY), 'currencies'),
- 'taxRates' => TaxRate::scope()->whereIsInclusive(false)->get(['id', 'name', 'rate']),
+ 'taxRates' => TaxRate::scope()->whereIsInclusive(false)->orderBy('rate')->get(['public_id', 'name', 'rate']),
'account' => $account,
]);
}
diff --git a/app/Models/Account.php b/app/Models/Account.php
index 6d5c3ca90346..431e9bd118b3 100644
--- a/app/Models/Account.php
+++ b/app/Models/Account.php
@@ -189,6 +189,14 @@ class Account extends Eloquent
return $this->hasMany('App\Models\AccountGateway');
}
+ /**
+ * @return \Illuminate\Database\Eloquent\Relations\HasMany
+ */
+ public function account_gateway_settings()
+ {
+ return $this->hasMany('App\Models\AccountGatewaySettings');
+ }
+
/**
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
diff --git a/app/Ninja/Datatables/AccountGatewayDatatable.php b/app/Ninja/Datatables/AccountGatewayDatatable.php
index bf274eb40af4..814ace071cc9 100644
--- a/app/Ninja/Datatables/AccountGatewayDatatable.php
+++ b/app/Ninja/Datatables/AccountGatewayDatatable.php
@@ -171,10 +171,9 @@ class AccountGatewayDatatable extends EntityDatatable
$accountGatewaySettings = AccountGatewaySettings::scope()
->where('account_gateway_settings.gateway_type_id', '=', $gatewayType->id)
->first();
- $min = $accountGatewaySettings && $accountGatewaySettings->min_limit !== null ? $accountGatewaySettings->min_limit : 'null';
- $max = $accountGatewaySettings && $accountGatewaySettings->max_limit !== null ? $accountGatewaySettings->max_limit : 'null';
-
- return "javascript:showLimitsModal('{$gatewayType->name}', {$gatewayType->id}, $min, $max)";
+ //$min = $accountGatewaySettings && $accountGatewaySettings->min_limit !== null ? $accountGatewaySettings->min_limit : 'null';
+ //$max = $accountGatewaySettings && $accountGatewaySettings->max_limit !== null ? $accountGatewaySettings->max_limit : 'null';
+ return "javascript:showLimitsModal('{$gatewayType->name}', {$gatewayType->id})";
},
function ($model) use ($gatewayType) {
// Only show this action if the given gateway supports this gateway type
diff --git a/docs/configure.rst b/docs/configure.rst
index c79f221092be..652294ffd92f 100644
--- a/docs/configure.rst
+++ b/docs/configure.rst
@@ -64,7 +64,7 @@ You can install PhantomJS to generate the PDF locally, to enable it add ``PHANTO
Custom Fonts
""""""""""""
-Follow these steps to add custom ttf fonts: ie, Google fonts
+Follow these steps to add custom ttf fonts: ie, `Google fonts