1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Clarify gateways vs bank accounts

This commit is contained in:
Hillel Coren 2017-10-15 12:38:18 +03:00
parent 62d31999ed
commit 8385e20c53
3 changed files with 8 additions and 1 deletions

View File

@ -431,9 +431,12 @@ class AccountController extends BaseController
*/
private function showBankAccounts()
{
$account = auth()->user()->account;
return View::make('accounts.banks', [
'title' => trans('texts.bank_accounts'),
'advanced' => ! Auth::user()->hasFeature(FEATURE_EXPENSES),
'warnPaymentGateway' => ! $account->account_gateways->count(),
]);
}

View File

@ -2481,7 +2481,7 @@ $LANG = array(
'time_hr' => 'hr',
'time_hrs' => 'hrs',
'clear' => 'Clear',
'warn_payment_gateway' => 'Note: to accept online payments :link to add a payment gateway.',
);
return $LANG;

View File

@ -4,6 +4,10 @@
@parent
@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))
<div class="pull-right">
{!! Button::normal(trans('texts.import_ofx'))