Aktualisieren von CreateEDocument.php

This commit is contained in:
Lars Kusch 2024-03-13 10:34:36 +01:00 committed by GitHub
parent 9a286f65e6
commit 7144e10654
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,7 +54,7 @@ class CreateEDocument implements ShouldQueue
/* Init a new copy of the translator*/ /* Init a new copy of the translator*/
$t = app('translator'); $t = app('translator');
/* Set the locale*/ /* 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()); App::setLocale($$settings_entity->locale());
/* Set customized translations _NOW_ */ /* Set customized translations _NOW_ */