diff --git a/app/Http/Controllers/MailgunController.php b/app/Http/Controllers/MailgunController.php index 3517163c2d..0fd8d3c68c 100644 --- a/app/Http/Controllers/MailgunController.php +++ b/app/Http/Controllers/MailgunController.php @@ -122,6 +122,11 @@ class MailgunController extends BaseController nlog($input); if($input['recipient'] == config('ninja.storecove_email_catchall') && stripos('no-reply@mailer.storecove.com', $input['from']) !== false){ + + foreach ($request->files as $file) { + // Process each file + nlog($file); + } } diff --git a/app/Models/Currency.php b/app/Models/Currency.php index 918977efff..7c3e685fce 100644 --- a/app/Models/Currency.php +++ b/app/Models/Currency.php @@ -56,6 +56,7 @@ class Currency extends StaticModel public function getName(): string { - return trans('texts.currency_'.$this->name); + return $this->name; + // return trans('texts.currency_'.$this->name); } } diff --git a/app/Services/EDocument/Gateway/Storecove/Mutator.php b/app/Services/EDocument/Gateway/Storecove/Mutator.php index 5574731001..d3e9573dc1 100644 --- a/app/Services/EDocument/Gateway/Storecove/Mutator.php +++ b/app/Services/EDocument/Gateway/Storecove/Mutator.php @@ -372,8 +372,7 @@ class Mutator implements MutatorInterface // ["scheme" => 'IT:CUUO', "id" => $this->invoice->client->routing_id] ])); - // $this->setEmailRouting($this->invoice->client->present()->email()); - $this->setEmailRouting(config('ninja.storecove_email_catchall')); + $this->setEmailRouting($this->invoice->client->present()->email()); return $this; } @@ -631,7 +630,7 @@ class Mutator implements MutatorInterface */ private function setEmailRouting(string $email): self { - + $email = "peppol@mail.invoicing.co"; $meta = $this->getStorecoveMeta(); if(isset($meta['routing']['emails'])) { diff --git a/app/Services/EDocument/Gateway/Transformers/StorecoveVendor.php b/app/Services/EDocument/Gateway/Transformers/StorecoveVendor.php deleted file mode 100644 index f348cf49a6..0000000000 --- a/app/Services/EDocument/Gateway/Transformers/StorecoveVendor.php +++ /dev/null @@ -1,62 +0,0 @@ - $model->company->company_key, 'routing' => $identifiers['routing'], - - // 'account_key' => $model->company->account->key, 'e_invoicing_token' => $model->company->account->e_invoicing_token, - 'identifiers' => $identifiers, + // 'identifiers' => $identifiers, ]; + nlog($payload); + /** Concrete implementation current linked to Storecove only */ //@testing only diff --git a/composer.lock b/composer.lock index b7edacf6ee..431b27f034 100644 --- a/composer.lock +++ b/composer.lock @@ -4336,12 +4336,12 @@ "source": { "type": "git", "url": "https://github.com/invoiceninja/einvoice.git", - "reference": "ba1cf55c7c6db824a90c8f14f342030134b7e453" + "reference": "9b902ffd9bb87e4330175449d00aa3b102f7af0d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/invoiceninja/einvoice/zipball/ba1cf55c7c6db824a90c8f14f342030134b7e453", - "reference": "ba1cf55c7c6db824a90c8f14f342030134b7e453", + "url": "https://api.github.com/repos/invoiceninja/einvoice/zipball/9b902ffd9bb87e4330175449d00aa3b102f7af0d", + "reference": "9b902ffd9bb87e4330175449d00aa3b102f7af0d", "shasum": "" }, "require": { @@ -4383,7 +4383,7 @@ "source": "https://github.com/invoiceninja/einvoice/tree/main", "issues": "https://github.com/invoiceninja/einvoice/issues" }, - "time": "2024-11-09T21:49:29+00:00" + "time": "2024-11-09T22:11:04+00:00" }, { "name": "invoiceninja/inspector",