Move some translations of invoice and bill to documents langugage file

This commit is contained in:
Burak Çakırel
2020-12-25 15:52:02 +03:00
parent 838bfb7f1d
commit 0b2d33e224
9 changed files with 23 additions and 29 deletions

View File

@@ -6,7 +6,6 @@ use App\Events\Document\DocumentCancelled as Event;
use App\Jobs\Document\CancelDocument;
use App\Jobs\Document\CreateDocumentHistory;
use App\Traits\Jobs;
use Illuminate\Support\Str;
class MarkDocumentCancelled
{
@@ -22,7 +21,6 @@ class MarkDocumentCancelled
{
$this->dispatch(new CancelDocument($event->document));
$type = Str::plural($event->document->type);
$this->dispatch(new CreateDocumentHistory($event->document, 0, trans("$type.messages.marked_cancelled")));
$this->dispatch(new CreateDocumentHistory($event->document, 0, trans('general.messages.marked_cancelled', ['type' => ''])));
}
}

View File

@@ -5,7 +5,6 @@ namespace App\Listeners\Document;
use App\Events\Document\DocumentReceived as Event;
use App\Jobs\Document\CreateDocumentHistory;
use App\Traits\Jobs;
use Illuminate\Support\Str;
class MarkDocumentReceived
{
@@ -25,7 +24,6 @@ class MarkDocumentReceived
$event->document->save();
}
$type = Str::plural($event->document->type);
$this->dispatch(new CreateDocumentHistory($event->document, 0, trans("$type.messages.marked_received")));
$this->dispatch(new CreateDocumentHistory($event->document, 0, trans('general.messages.marked_received', ['type' => ''])));
}
}

View File

@@ -5,7 +5,6 @@ namespace App\Listeners\Document;
use App\Events\Document\DocumentSent as Event;
use App\Jobs\Document\CreateDocumentHistory;
use App\Traits\Jobs;
use Illuminate\Support\Str;
class MarkDocumentSent
{
@@ -25,8 +24,6 @@ class MarkDocumentSent
$event->document->save();
}
$type = Str::plural($event->document->type);
$this->dispatch(new CreateDocumentHistory($event->document, 0, trans("$type.messages.marked_sent")));
$this->dispatch(new CreateDocumentHistory($event->document, 0, trans('documents.messages.marked_sent', ['type' => ''])));
}
}

View File

@@ -5,7 +5,6 @@ namespace App\Listeners\Document;
use App\Events\Document\DocumentViewed as Event;
use App\Jobs\Document\CreateDocumentHistory;
use App\Traits\Jobs;
use Illuminate\Support\Str;
class MarkDocumentViewed
{
@@ -30,8 +29,6 @@ class MarkDocumentViewed
$document->status = 'viewed';
$document->save();
$type = Str::plural($document->type);
$this->dispatch(new CreateDocumentHistory($event->document, 0, trans("$type.messages.marked_viewed")));
$this->dispatch(new CreateDocumentHistory($event->document, 0, trans('general.messages.marked_viewed', ['type' => ''])));
}
}