From f44559869a2779a6672801bf60760c6a917dd0d9 Mon Sep 17 00:00:00 2001 From: paulwer Date: Wed, 26 Jun 2024 19:05:14 +0200 Subject: [PATCH] comments --- app/Services/EDocument/Imports/ParseEDocument.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Services/EDocument/Imports/ParseEDocument.php b/app/Services/EDocument/Imports/ParseEDocument.php index aed13a9fda..73776e4aaa 100644 --- a/app/Services/EDocument/Imports/ParseEDocument.php +++ b/app/Services/EDocument/Imports/ParseEDocument.php @@ -32,6 +32,8 @@ class ParseEDocument extends AbstractService * Execute the service. * the service will parse the file with all available libraries of the system and will return an expense, when possible * + * @developer the function should be implemented with local first aproach to save costs of external providers (like mindee ocr) + * * @return Expense * @throws \Exception */ @@ -41,7 +43,7 @@ class ParseEDocument extends AbstractService /** @var \App\Models\Account $account */ $account = auth()->user()->account; - // try to parse via Zugferd lib + // ZUGFERD - try to parse via Zugferd lib $zugferd_exception = null; try { switch (true) { @@ -56,7 +58,7 @@ class ParseEDocument extends AbstractService $zugferd_exception = $e; } - // try to parse via mindee lib + // MINDEE OCR - try to parse via mindee external service $mindee_exception = null; if (config('services.mindee.api_key') && (Ninja::isSelfHost() || (Ninja::isHosted() && $account->isPaid() && $account->plan == 'enterprise'))) try {