mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Clarify gateways vs bank accounts
This commit is contained in:
parent
62d31999ed
commit
8385e20c53
@ -431,9 +431,12 @@ class AccountController extends BaseController
|
|||||||
*/
|
*/
|
||||||
private function showBankAccounts()
|
private function showBankAccounts()
|
||||||
{
|
{
|
||||||
|
$account = auth()->user()->account;
|
||||||
|
|
||||||
return View::make('accounts.banks', [
|
return View::make('accounts.banks', [
|
||||||
'title' => trans('texts.bank_accounts'),
|
'title' => trans('texts.bank_accounts'),
|
||||||
'advanced' => ! Auth::user()->hasFeature(FEATURE_EXPENSES),
|
'advanced' => ! Auth::user()->hasFeature(FEATURE_EXPENSES),
|
||||||
|
'warnPaymentGateway' => ! $account->account_gateways->count(),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2481,7 +2481,7 @@ $LANG = array(
|
|||||||
'time_hr' => 'hr',
|
'time_hr' => 'hr',
|
||||||
'time_hrs' => 'hrs',
|
'time_hrs' => 'hrs',
|
||||||
'clear' => 'Clear',
|
'clear' => 'Clear',
|
||||||
|
'warn_payment_gateway' => 'Note: to accept online payments :link to add a payment gateway.',
|
||||||
);
|
);
|
||||||
|
|
||||||
return $LANG;
|
return $LANG;
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
@parent
|
@parent
|
||||||
@include('accounts.nav', ['selected' => ACCOUNT_BANKS])
|
@include('accounts.nav', ['selected' => ACCOUNT_BANKS])
|
||||||
|
|
||||||
|
@if (isset($warnPaymentGateway) && $warnPaymentGateway)
|
||||||
|
<div class="alert alert-warning">{!! trans('texts.warn_payment_gateway', ['link' => link_to('/gateways/create', trans('texts.click_here'))]) !!}</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
@if (Auth::user()->hasFeature(FEATURE_EXPENSES))
|
@if (Auth::user()->hasFeature(FEATURE_EXPENSES))
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
{!! Button::normal(trans('texts.import_ofx'))
|
{!! Button::normal(trans('texts.import_ofx'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user