diff --git a/app/Http/Controllers/EInvoiceController.php b/app/Http/Controllers/EInvoiceController.php index eee3eb57f77b..1904ce5f2123 100644 --- a/app/Http/Controllers/EInvoiceController.php +++ b/app/Http/Controllers/EInvoiceController.php @@ -11,12 +11,8 @@ namespace App\Http\Controllers; -use App\Exceptions\SystemError; use App\Http\Requests\EInvoice\ValidateEInvoiceRequest; use App\Services\EDocument\Standards\Validation\Peppol\EntityLevel; -use Illuminate\Http\Request; -use Illuminate\Support\Facades\Cache; -use Illuminate\Support\Facades\Storage; class EInvoiceController extends BaseController { @@ -33,7 +29,9 @@ class EInvoiceController extends BaseController 'companies' => $data = $el->checkCompany($request->getEntity()), default => $data['passes'] = false, }; -nlog($data); + + nlog($data); + return response()->json($data, $data['passes'] ? 200 : 400); } diff --git a/lang/fr_CA/texts.php b/lang/fr_CA/texts.php index 684db93062f5..ccc86165eb07 100644 --- a/lang/fr_CA/texts.php +++ b/lang/fr_CA/texts.php @@ -5312,6 +5312,20 @@ Développe automatiquement la section des notes dans le tableau de produits pour 'comments_only' => 'Commentaires seulement', 'payment_balance_on_file' => 'Payer le solde inscrit au dossier', 'ubl_email_attachment_help' => 'Plus de paramètres pour E-facture, cliquez :here', + 'stop_task_to_add_task_entry' => 'Vous dez arrêter la tâche avant d\'ajouter un nouvel article.', + 'xml_file' => 'Fichier XML', + 'one_page_checkout' => 'Paiement simplifié', + 'one_page_checkout_help' => 'Activer la nouvelle page de paiement simplifiée', + 'applies_to' => 'S\'applique à', + 'accept_purchase_order' => 'Accepter le bon d\'achat', + 'round_to_seconds' => 'Arrondir aux secondes', + 'activity_142' => 'Le rappel 1 de la soumission :number a été envoyé', + 'activity_143' => 'La facturation automatique a réussi pour la facture :invoice', + 'activity_144' => 'La facturation automatique de :invoice_number a échouée. :notes', + 'activity_145' => 'E-Facture :invoice pour :client à été envoyée. :notes', + 'payment_failed' => 'Le paiement a échoué', + 'ssl_host_override' => 'Substitution d\'hôte SSL', + 'upload_logo_short' => 'Téléverser un logo', ); return $lang; diff --git a/lang/ru_RU/texts.php b/lang/ru_RU/texts.php index 880b898e5670..87021a1b8b10 100644 --- a/lang/ru_RU/texts.php +++ b/lang/ru_RU/texts.php @@ -1100,7 +1100,7 @@ $lang = array( 'invoice_embed_documents' => 'Embed Documents', 'invoice_embed_documents_help' => 'Include attached images in the invoice.', 'document_email_attachment' => 'Загрузить Документы', - 'ubl_email_attachment' => 'Attach UBL', + 'ubl_email_attachment' => 'Attach UBL/E-Invoice', 'download_documents' => 'Download Documents (:size)', 'documents_from_expenses' => 'From Expenses:', 'dropzone_default_message' => 'Для загрузки Перетащите файлы или нажмите.', @@ -2365,7 +2365,7 @@ $lang = array( 'currency_gold_troy_ounce' => 'Gold Troy Ounce', 'currency_nicaraguan_córdoba' => 'Nicaraguan Córdoba', 'currency_malagasy_ariary' => 'Malagasy ariary', - "currency_tongan_pa_anga" => "Tongan Pa'anga", + "currency_tongan_paanga" => "Tongan Pa'anga", 'review_app_help' => 'We hope you\'re enjoying using the app.
If you\'d consider :link we\'d greatly appreciate it!', 'writing_a_review' => 'writing a review', @@ -2881,19 +2881,6 @@ $lang = array( 'refunded' => 'Refunded', 'marked_quote_as_sent' => 'Successfully marked quote as sent', 'custom_module_settings' => 'Custom Module Settings', - 'ticket' => 'Тикет', - 'tickets' => 'Тикеты', - 'ticket_number' => 'Ticket #', - 'new_ticket' => 'New Ticket', - 'edit_ticket' => 'Edit Ticket', - 'view_ticket' => 'Посмотреть Тикет', - 'archive_ticket' => 'Архивировать Тикет', - 'restore_ticket' => 'Восстановить Тикет', - 'delete_ticket' => 'Удалить Тикет', - 'archived_ticket' => 'Successfully archived ticket', - 'archived_tickets' => 'Successfully archived tickets', - 'restored_ticket' => 'Successfully restored ticket', - 'deleted_ticket' => 'Successfully deleted ticket', 'open' => 'Открыт', 'new' => 'Новый', 'closed' => 'Закрыт', @@ -2910,14 +2897,6 @@ $lang = array( 'assigned_to' => 'Назначен', 'reply' => 'Ответ', 'awaiting_reply' => 'В ожидании ответа', - 'ticket_close' => 'Закрыть Тикет', - 'ticket_reopen' => 'Открыть Тикет заново', - 'ticket_open' => 'Открыть Тикет', - 'ticket_split' => 'Разделить Тикет', - 'ticket_merge' => 'Объединить Тикет', - 'ticket_update' => 'Обновить Тикет', - 'ticket_settings' => 'Настройки тикета', - 'updated_ticket' => 'Тикет обновлён', 'mark_spam' => 'Пометить как спам', 'local_part' => 'Local Part', 'local_part_unavailable' => 'Name taken', @@ -2935,31 +2914,23 @@ $lang = array( 'mime_types' => 'Mime types', 'mime_types_placeholder' => '.pdf , .docx, .jpg', 'mime_types_help' => 'Comma separated list of allowed mime types, leave blank for all', + 'ticket_number_start_help' => 'Ticket number must be greater than the current ticket number', + 'new_ticket_template_id' => 'New ticket', + 'new_ticket_autoresponder_help' => 'Selecting a template will send an auto response to a client/contact when a new ticket is created', + 'update_ticket_template_id' => 'Updated ticket', + 'update_ticket_autoresponder_help' => 'Selecting a template will send an auto response to a client/contact when a ticket is updated', + 'close_ticket_template_id' => 'Closed ticket', + 'close_ticket_autoresponder_help' => 'Selecting a template will send an auto response to a client/contact when a ticket is closed', 'default_priority' => 'ПРиоритет по-умолчанию', 'alert_new_comment_id' => 'Новый комментарий', - 'alert_comment_ticket_help' => 'Selecting a template will send a notification (to agent) when a comment is made.', - 'alert_comment_ticket_email_help' => 'Comma separated emails to bcc on new comment.', - 'new_ticket_notification_list' => 'Additional new ticket notifications', 'update_ticket_notification_list' => 'Additional new comment notifications', 'comma_separated_values' => 'admin@example.ru, supervisor@example.ru', - 'alert_ticket_assign_agent_id' => 'Ticket assignment', - 'alert_ticket_assign_agent_id_hel' => 'Selecting a template will send a notification (to agent) when a ticket is assigned.', - 'alert_ticket_assign_agent_id_notifications' => 'Additional ticket assigned notifications', - 'alert_ticket_assign_agent_id_help' => 'Comma separated emails to bcc on ticket assignment.', - 'alert_ticket_transfer_email_help' => 'Comma separated emails to bcc on ticket transfer.', - 'alert_ticket_overdue_agent_id' => 'Тикет просрочен', - 'alert_ticket_overdue_email' => 'Additional overdue ticket notifications', - 'alert_ticket_overdue_email_help' => 'Comma separated emails to bcc on ticket overdue.', - 'alert_ticket_overdue_agent_id_help' => 'Selecting a template will send a notification (to agent) when a ticket becomes overdue.', 'default_agent' => 'Default Agent', 'default_agent_help' => 'If selected will automatically be assigned to all inbound tickets', 'show_agent_details' => 'Show agent details on responses', 'avatar' => 'Аватар', 'remove_avatar' => 'Удалить аватар', - 'ticket_not_found' => 'Тикет не найден', 'add_template' => 'Добавить Шаблон', - 'updated_ticket_template' => 'Updated Ticket Template', - 'created_ticket_template' => 'Created Ticket Template', 'archive_ticket_template' => 'Архивировать шаблон', 'restore_ticket_template' => 'Восстановить шаблон', 'archived_ticket_template' => 'Successfully archived template', @@ -3075,7 +3046,7 @@ $lang = array( 'portal_mode' => 'Portal Mode', 'attach_pdf' => 'Attach PDF', 'attach_documents' => 'Attach Documents', - 'attach_ubl' => 'Attach UBL', + 'attach_ubl' => 'Attach UBL/E-Invoice', 'email_style' => 'Email Style', 'processed' => 'Processed', 'fee_amount' => 'Fee Amount', @@ -3816,7 +3787,7 @@ $lang = array( 'entity_number_placeholder' => ':entity # :entity_number', 'email_link_not_working' => 'If the button above isn\'t working for you, please click on the link', 'display_log' => 'Display Log', - 'send_fail_logs_to_our_server' => 'Report errors in realtime', + 'send_fail_logs_to_our_server' => 'Report errors to help improve the app', 'setup' => 'Setup', 'quick_overview_statistics' => 'Quick overview & statistics', 'update_your_personal_info' => 'Update your personal information', @@ -5154,7 +5125,7 @@ $lang = array( 'all_contacts' => 'All Contacts', 'insert_below' => 'Insert Below', 'nordigen_handler_subtitle' => 'Bank account authentication. Selecting your institution to complete the request with your account credentials.', - 'nordigen_handler_error_heading_unknown' => 'An error has occured', + 'nordigen_handler_error_heading_unknown' => 'An error has occurred', 'nordigen_handler_error_contents_unknown' => 'An unknown error has occurred! Reason:', 'nordigen_handler_error_heading_token_invalid' => 'Invalid Token', 'nordigen_handler_error_contents_token_invalid' => 'The provided token was invalid. Contact support for help, if this issue persists.', @@ -5268,7 +5239,7 @@ $lang = array( 'local_domain_help' => 'EHLO domain (optional)', 'port_help' => 'ie. 25,587,465', 'host_help' => 'ie. smtp.gmail.com', - 'always_show_required_fields' => 'Allows show required fields form', + 'always_show_required_fields' => 'Always show required fields form', 'always_show_required_fields_help' => 'Displays the required fields form always at checkout', 'advanced_cards' => 'Advanced Cards', 'activity_140' => 'Statement sent to :client', @@ -5304,6 +5275,60 @@ $lang = array( 'currency_bhutan_ngultrum' => 'Bhutan Ngultrum', 'end_of_month' => 'End Of Month', 'merge_e_invoice_to_pdf' => 'Merge E-Invoice and PDF', + 'task_assigned_subject' => 'New task assignment [Task :task] [ :date ]', + 'task_assigned_body' => 'You have been assigned task :task

Description: :description

Client: :client', + 'activity_141' => 'User :user entered note: :notes', + 'quote_reminder_subject' => 'Reminder: Quote :quote from :company', + 'quote_reminder_message' => 'Reminder for quote :number for :amount', + 'quote_reminder1' => 'First Quote Reminder', + 'before_valid_until_date' => 'Before the valid until date', + 'after_valid_until_date' => 'After the valid until date', + 'after_quote_date' => 'After the quote date', + 'remind_quote' => 'Remind Quote', + 'end_of_month' => 'End Of Month', + 'tax_currency_mismatch' => 'Tax currency is different from invoice currency', + 'edocument_import_already_exists' => 'The invoice has already been imported on :date', + 'before_valid_until' => 'Before the valid until', + 'after_valid_until' => 'After the valid until', + 'task_assigned_notification' => 'Task Assigned Notification', + 'task_assigned_notification_help' => 'Send an email when a task is assigned', + 'invoices_locked_end_of_month' => 'Invoices are locked at the end of the month', + 'referral_url' => 'Referral URL', + 'add_comment' => 'Add Comment', + 'added_comment' => 'Successfully saved comment', + 'tickets' => 'Tickets', + 'assigned_group' => 'Successfully assigned group', + 'merge_to_pdf' => 'Merge to PDF', + 'latest_requires_php_version' => 'Note: the latest version requires PHP :version', + 'auto_expand_product_table_notes' => 'Automatically expand products table notes', + 'auto_expand_product_table_notes_help' => 'Automatically expands the notes section within the products table to display more lines.', + 'institution_number' => 'Institution Number', + 'transit_number' => 'Transit Number', + 'personal' => 'Personal', + 'address_information' => 'Address Information', + 'enter_the_information_for_the_bank_account' => 'Enter the Information for the Bank Account', + 'account_holder_information' => 'Account Holder Information', + 'enter_information_for_the_account_holder' => 'Enter Information for the Account Holder', + 'customer_type' => 'Customer Type', + 'process_date' => 'Process Date', + 'forever_free' => 'Forever Free', + 'comments_only' => 'Comments Only', + 'payment_balance_on_file' => 'Payment Balance On File', + 'ubl_email_attachment_help' => 'For more e-invoice settings please navigate :here', + 'stop_task_to_add_task_entry' => 'You need to stop the task before adding a new item.', + 'xml_file' => 'XML File', + 'one_page_checkout' => 'One-Page Checkout', + 'one_page_checkout_help' => 'Enable the new single page payment flow', + 'applies_to' => 'Applies To', + 'accept_purchase_order' => 'Accept Purchase Order', + 'round_to_seconds' => 'Round To Seconds', + 'activity_142' => 'Quote :number reminder 1 sent', + 'activity_143' => 'Auto Bill succeeded for invoice :invoice', + 'activity_144' => 'Auto Bill failed for invoice :invoice. :notes', + 'activity_145' => 'EInvoice :invoice for :client was e-delivered. :notes', + 'payment_failed' => 'Payment Failed', + 'ssl_host_override' => 'SSL Host Override', + 'upload_logo_short' => 'Upload Logo', ); -return $lang; \ No newline at end of file +return $lang;