diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index 1e57391a5bbd..ca9ec52fae76 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -841,12 +841,9 @@ class AccountController extends BaseController foreach ([REMINDER1, REMINDER2, REMINDER3] as $type) { $enableField = "enable_{$type}"; $account->$enableField = Input::get($enableField) ? true : false; - - if ($account->$enableField) { - $account->{"num_days_{$type}"} = Input::get("num_days_{$type}"); - $account->{"field_{$type}"} = Input::get("field_{$type}"); - $account->{"direction_{$type}"} = Input::get("field_{$type}") == REMINDER_FIELD_INVOICE_DATE ? REMINDER_DIRECTION_AFTER : Input::get("direction_{$type}"); - } + $account->{"num_days_{$type}"} = Input::get("num_days_{$type}"); + $account->{"field_{$type}"} = Input::get("field_{$type}"); + $account->{"direction_{$type}"} = Input::get("field_{$type}") == REMINDER_FIELD_INVOICE_DATE ? REMINDER_DIRECTION_AFTER : Input::get("direction_{$type}"); } $account->save(); diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 4dad536f445c..8e02aee15646 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -864,8 +864,8 @@ $LANG = array( 'created_invoices' => 'Successfully created :count invoice(s)', 'next_invoice_number' => 'The next invoice number is :number.', 'next_quote_number' => 'The next quote number is :number.', - 'days_before' => 'days before', - 'days_after' => 'days after', + 'days_before' => 'days before the', + 'days_after' => 'days after the', 'field_due_date' => 'due date', 'field_invoice_date' => 'invoice date', 'schedule' => 'Schedule', @@ -2346,6 +2346,7 @@ $LANG = array( 'statement_date' => 'Statement Date', 'inactivity_logout' => 'Due to inactivity, you have been automatically logged out.', 'mark_active' => 'Mark Active', + 'send_automatically' => 'Send Automatically', ); diff --git a/resources/views/accounts/template.blade.php b/resources/views/accounts/template.blade.php index 254494e2b3fe..2788d32c75c6 100644 --- a/resources/views/accounts/template.blade.php +++ b/resources/views/accounts/template.blade.php @@ -4,13 +4,14 @@ {!! Former::populateField('enable_' . $field, intval($account->{'enable_' . $field})) !!} -
@@ -53,9 +53,8 @@ {!! Former::textarea('email_template_' . $field) ->label(trans('texts.body')) - ->addClass('enable-' . $field) ->style('display:none') !!} -