Comments (7)
Hi,
Which version do you use ?
Also, can you give us a screenshot of the filled form to try to reproduce the issue please ?
from opencapture.
I use version 2.2.2.
here is a screenshot of my simple form
from opencapture.
I try to reproduce the error and I didn't have any issues while exporting the XML with the supplier name including accent. Could you try to update your installation (with 2.2.3) and try again ?
from opencapture.
It's worse. I took my pre-test snapshot and updated to 2.2.3.
I loaded the same invoice...it doesn't appear in today's batches! nor in the older ones.
However, the logs show that it has been processed.
Log OpenCapture :
[Open-Capture ] [OCForInvoices.py line 123] 17-05-2022 17:03:41 INFO Processing file : /var/www/html/opencaptureforinvoices/instance/upload/verifier/11Ob_fact_CCR.pdf
[Open-Capture ] [FindSupplier.py line 188] 17-05-2022 17:03:53 INFO No supplier informations found in the header, improve image and retry...
[Open-Capture ] [FindSupplier.py line 196] 17-05-2022 17:03:56 INFO No supplier informations found with improved image, try with footer...
[Open-Capture ] [FindSupplier.py line 108] 17-05-2022 17:03:56 INFO Supplier found : Couverture Charpente Réunies using VAT Number : FR18382116952
[Open-Capture ] [FindInvoiceNumber.py line 87 ] 17-05-2022 17:03:56 INFO Invoice number found : 151212
[Open-Capture ] [FindDate.py line 170] 17-05-2022 17:03:56 INFO Invoice date found : 17/12/2015
I had difficulties with the update. OC could not connect to the database for identification. On the 2nd attempt and an OS upgrade, it worked.
from opencapture.
The LOG should show "Process end after XXX". If not, please check the status of the workers (see documentation : https://edissyum.gitbook.io/open-capture-for-invoices-v2/francais/gestion-des-erreurs)
By the way, we had issue when launching the 2.2.3. If you install it before today you could do the following to update to latest :
cd /var/www/html/opencaptureforinvoices/
git fetch origin --tags --force
git checkout 2.2.3
from opencapture.
Hi!
After reset to last snapshot (v 2.2.2) I resart update.sh
then it work.
I see an error during update :
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation :
Les paquets suivants contiennent des dépendances non satisfaites :
libpq-dev : Dépend: libpq5 (= 13.7-0+deb11u1) mais 14.2-1.pgdg110+1 devra être installé
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».
Requirement already satisfied: pip in /usr/local/lib/python3.9/dist-packages (22.0.4)
After added my invoice, I check services, I think there is an error in OCForInvoices-worker.service
here are result of status of all services:
root@opencapture:~# systemctl status OCForInvoices-worker.service
● OCForInvoices-worker.service - Daemon for Open-Capture for Invoices
Loaded: loaded (/etc/systemd/system/OCForInvoices-worker.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2022-05-20 23:02:57 CEST; 4min 50s ago
Main PID: 1723 (service_workerO)
Tasks: 4 (limit: 4679)
Memory: 135.7M
CPU: 23.048s
CGroup: /system.slice/OCForInvoices-worker.service
├─1723 /bin/bash /var/www/html/opencaptureforinvoices/bin/scripts/service_workerOC.sh
└─1725 /usr/bin/python3 /usr/local/bin/kuyruk --app src.backend.main.OCforInvoices_worker worker --queue invoices
mai 20 23:05:31 opencapture service_workerOC.sh[1725]: return task.apply(*args, **kwargs)
mai 20 23:05:31 opencapture service_workerOC.sh[1725]: File "/usr/local/lib/python3.9/dist-packages/kuyruk/task.py", line 179, in apply
mai 20 23:05:31 opencapture service_workerOC.sh[1725]: return self.f(*args, **kwargs)
mai 20 23:05:31 opencapture service_workerOC.sh[1725]: File "/var/www/html/opencaptureforinvoices/src/backend/main.py", line 292, in launch
mai 20 23:05:31 opencapture service_workerOC.sh[1725]: res = OCForInvoices_process.process(args, path, log, config, files, ocr, regex, database, docservers, configurations, languages)
mai 20 23:05:31 opencapture service_workerOC.sh[1725]: File "/var/www/html/opencaptureforinvoices/src/backend/process/OCForInvoices.py", line 277, in process
mai 20 23:05:31 opencapture service_workerOC.sh[1725]: quotation_number = quotation_number_class.run()
mai 20 23:05:31 opencapture service_workerOC.sh[1725]: File "/var/www/html/opencaptureforinvoices/src/backend/process/FindQuotationNumber.py", line 84, in run
mai 20 23:05:31 opencapture service_workerOC.sh[1725]: for _invoice in re.finditer(r"" + self.regex['quotationRegex'] + "", line.content.upper()):
mai 20 23:05:31 opencapture service_workerOC.sh[1725]: KeyError: 'quotationRegex'
root@opencapture:~# systemctl status OCForInvoices_Split-worker
● OCForInvoices_Split-worker.service - Splitter Daemon for Open-Capture for Invoices
Loaded: loaded (/etc/systemd/system/OCForInvoices_Split-worker.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2022-05-20 23:02:57 CEST; 6min ago
Main PID: 1754 (service_workerO)
Tasks: 2 (limit: 4679)
Memory: 75.3M
CPU: 1.122s
CGroup: /system.slice/OCForInvoices_Split-worker.service
├─1754 /bin/bash /var/www/html/opencaptureforinvoices/bin/scripts/service_workerOC_splitter.sh
└─1755 /usr/bin/python3 /usr/local/bin/kuyruk --app src.backend.main_splitter.OCforInvoices worker --queue splitter
mai 20 23:02:57 opencapture systemd[1]: Started Splitter Daemon for Open-Capture for Invoices.
mai 20 23:02:58 opencapture service_workerOC_splitter.sh[1755]: I kuyruk.kuyruk.connection:85 - Connected to RabbitMQ
mai 20 23:02:58 opencapture service_workerOC_splitter.sh[1755]: I kuyruk.kuyruk.channel:60 - Opened new channel
mai 20 23:02:58 opencapture service_workerOC_splitter.sh[1755]: I kuyruk.worker._consume_messages:139 - Consumer started
root@opencapture:~# systemctl status rabbitmq-server.service
● rabbitmq-server.service - RabbitMQ Messaging Server
Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2022-05-20 23:01:11 CEST; 9min ago
Main PID: 354 (beam.smp)
Status: "Initialized"
Tasks: 86 (limit: 4679)
Memory: 118.2M
CPU: 10.028s
CGroup: /system.slice/rabbitmq-server.service
├─354 /usr/lib/erlang/erts-11.1.8/bin/beam.smp -W w -K true -A 64 -MBas ageffcbf -MHas ageffcbf -MBlmbcs 512 -MHlmbcs 512 -MMmcs 30 -P 1048576 -t 5000000 -stbt db -zdbbl 128000 -- -root /usr/lib/e>
├─522 erl_child_setup 65536
├─814 inet_gethost 4
└─815 inet_gethost 4
mai 20 23:01:01 opencapture systemd[1]: Starting RabbitMQ Messaging Server...
mai 20 23:01:11 opencapture systemd[1]: Started RabbitMQ Messaging Server.
from opencapture.
Hi,
We are currently working to improve the invoice process by adding a SQL update script between version. Here you are missing the new regex for quotation number. You can find the SQL INSERT in instance/sql/global.sql
from opencapture.
Related Issues (17)
- vat_number pour un supplier HOT 3
- Erreur lors de la configuration du SMTP HOT 9
- Erreur lors de l'affichage de la liste des comptes clients dans le Vérifier HOT 3
- error server 500 HOT 27
- 500: Internal Server Error
- again the 500 errer internal servor HOT 1
- Save changes KO
- Installation problem HOT 2
- path problem with gunicorn HOT 22
- [BUG] 502 Bad Gateway HOT 15
- HTTP Error 500 after clicking on an uploaded invoice from http://localhost/list/lot/TODAY/NEW HOT 6
- Is it possible to detect custom values ? HOT 3
- Error 500 after validation of a merged batch
- Brand new installation failed HOT 3
- Error 500 control panel HOT 22
- How to start AI HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencapture.