diff --git a/app/Http/Requests/Company/UpdateCompanyRequest.php b/app/Http/Requests/Company/UpdateCompanyRequest.php index 69ea2d2941..8c1bfead68 100644 --- a/app/Http/Requests/Company/UpdateCompanyRequest.php +++ b/app/Http/Requests/Company/UpdateCompanyRequest.php @@ -216,9 +216,8 @@ class UpdateCompanyRequest extends Request } - if($this->company->verifactuEnabled()) { + if(isset($settings['e_invoice_type']) && $settings['e_invoice_type'] == 'VERIFACTU' && $this->company->verifactuEnabled()) { $settings['lock_invoices'] = 'when_sent'; - $settings['e_invoice_type'] = 'VERIFACTU'; } if (isset($settings['email_style_custom'])) { diff --git a/lang/en/texts.php b/lang/en/texts.php index 26ef2bbdb3..cdcc853262 100644 --- a/lang/en/texts.php +++ b/lang/en/texts.php @@ -5648,6 +5648,9 @@ $lang = array( 'activity_151' => 'E-Invoice :invoice for :client failed to send to AEAT :notes', 'activity_152' => 'Invoice cancellation for :invoice sent to AEAT successfully', 'activity_153' => 'Invoice cancellation for :invoice failed to send to AEAT :notes', + 'justify' => 'Justify', + 'outdent' => 'Outdent', + 'indent' => 'Indent', ); return $lang;