diff --git a/app/Jobs/EDocument/CreateEDocument.php b/app/Jobs/EDocument/CreateEDocument.php index f8e0dba24af5..59226608316c 100644 --- a/app/Jobs/EDocument/CreateEDocument.php +++ b/app/Jobs/EDocument/CreateEDocument.php @@ -54,7 +54,7 @@ class CreateEDocument implements ShouldQueue /* Init a new copy of the translator*/ $t = app('translator'); /* Set the locale*/ - $settings_entity = ($this->document Instanceof PurchaseOrder) ? $this->document->vendor : $this->document->client; + $settings_entity = ($this->document instanceof PurchaseOrder) ? $this->document->vendor : $this->document->client; App::setLocale($$settings_entity->locale()); /* Set customized translations _NOW_ */