From d753096268ef2ca182298d3b68ea1e3c80cb2d87 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 19 Mar 2017 16:45:44 +0200 Subject: [PATCH] Add gateway fee surcharge settings link --- resources/lang/en/texts.php | 2 ++ resources/views/accounts/payments.blade.php | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 1acd1a3adb2f..525ce42d5f95 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -2419,6 +2419,8 @@ $LANG = array( 'gateway_fees_help' => 'Automatically add an online payment surcharge or line item.
Use \'Line item\' to support partial payments.', 'gateway' => 'Gateway', 'gateway_fee_change_warning' => 'If there are unpaid invoices with fees applied they need to be removed to prevent duplicate fees.', + 'fees_surcharge_help' => 'Customize surcharge :link.', + 'label_and_taxes' => 'label and taxes' ); diff --git a/resources/views/accounts/payments.blade.php b/resources/views/accounts/payments.blade.php index 9a4c9e7ab229..9f090ff3de91 100644 --- a/resources/views/accounts/payments.blade.php +++ b/resources/views/accounts/payments.blade.php @@ -170,8 +170,11 @@
@if ($account->gateway_fee_location == FEE_LOCATION_ITEM && !$account->invoice_item_taxes && $account->invoice_taxes && count($taxRates)) - {{ trans('texts.fees_tax_help') }} +
{{ trans('texts.fees_tax_help') }} @endif + @if ($account->gateway_fee_location == FEE_LOCATION_CHARGE1 || $account->gateway_fee_location == 2) +
{!! trans('texts.fees_surcharge_help', ['link' => link_to('/settings/invoice_settings#invoice_surcharges', trans('texts.label_and_taxes'), ['target' => '_blank'])]) !!} + @endif

{{ trans('texts.gateway_fees_disclaimer') }}