diff --git a/app/Http/Controllers/InvoiceController.php b/app/Http/Controllers/InvoiceController.php index 8b9593e..2c3988f 100644 --- a/app/Http/Controllers/InvoiceController.php +++ b/app/Http/Controllers/InvoiceController.php @@ -144,8 +144,7 @@ class InvoiceController extends Controller public function updateModel(Invoice &$model) { if ($model->signed_date) { - throw ValidationException::withMessages([ - 'erreur' => trans('Il n\'est pas possible de mettre a jour une facture qui est signée') + throw ValidationException::withMessages(['erreur' => trans('Il n\'est pas possible de mettre a jour un devis qui est signé') ]); } $this->validateTasks($model); @@ -214,7 +213,7 @@ class InvoiceController extends Controller { $this->authorize($invoice, 'download'); return $invoice->generateInvoice() - ->stream(Str::slug(trans('Facture :appname :date - ref :ref', [ + ->stream(Str::slug(trans('Devis :appname :date - ref :ref', [ 'appname' => config('app.name'), 'date' => $invoice->created_at->isoFormat('YYYY-MM-DD'), 'ref' => $invoice->ref, diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index 2ccb3af..aab0f39 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -370,7 +370,7 @@ class Invoice extends Model 'margin_header' => 0, 'margin_footer' => 0, 'orientation' => 'P', - 'title' => __('Facture Service Web :ref', ['ref' => $this->ref]), + 'title' => __('Devis Équipe Web :ref', ['ref' => $this->ref]), 'author' => 'Equipe Web', 'watermark' => '', 'show_watermark' => false, diff --git a/resources/lang/fr/models.php b/resources/lang/fr/models.php index 0406f0b..de9519d 100644 --- a/resources/lang/fr/models.php +++ b/resources/lang/fr/models.php @@ -14,7 +14,7 @@ return [ 'brands' => 'Marques', 'labels' => 'Labels', 'packages' => 'Forfaits', - 'invoices' => 'Factures', + 'invoices' => 'Devis', 'companies' => 'Sociétés', ] ]; diff --git a/resources/views/documents/invoice.blade.php b/resources/views/documents/invoice.blade.php index 8e18917..37efce6 100644 --- a/resources/views/documents/invoice.blade.php +++ b/resources/views/documents/invoice.blade.php @@ -3,13 +3,13 @@ - {{ __('Facture :appname - ref :ref', [ + {{ __('Devis :appname - ref :ref', [ 'appname' => config('app.name'), 'ref' => $ref, ]) }} - +