From 35656ae96b06e1660603710e6d265ce5e43ac104 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 16 Feb 2018 11:54:46 +0200 Subject: [PATCH] Clarfiy inclusive taxes --- resources/lang/en/texts.php | 4 ++++ resources/views/accounts/tax_rates.blade.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index bf62bf7ae2cd..e5e92db19d42 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -2746,6 +2746,10 @@ $LANG = array( 'delete_image' => 'Delete Image', 'delete_image_help' => 'Warning: deleting the image will remove it from all proposals.', 'amount_variable_help' => 'Note: the invoice $amount field will use the partial/deposit field if set otherwise it will use the invoice balance.', + 'taxes_are_included_help' => 'Taxes are included with the cost.', + 'taxes_are_not_included_help' => 'Taxes are excluded from the cost.', + 'change_requires_purge' => 'Changing this setting requires :link the account data.', + 'purging' => 'purging', ); diff --git a/resources/views/accounts/tax_rates.blade.php b/resources/views/accounts/tax_rates.blade.php index e3c84084287b..b25727a01bf2 100644 --- a/resources/views/accounts/tax_rates.blade.php +++ b/resources/views/accounts/tax_rates.blade.php @@ -46,6 +46,10 @@ ->label(' ') ->help('inclusive_taxes_notice') ->value(1) !!} + @elseif ($countInvoices <= 10) + {!! Former::plaintext(' ')->help( + trans($account->inclusive_taxes ? 'texts.taxes_are_included_help' : 'texts.taxes_are_not_included_help') . '
' . + trans('texts.change_requires_purge', ['link' => link_to(url('/settings/account_management'), trans('texts.purging'))])) !!} @endif