In Italy starting 2019, all invoices must be send only as XML file. I'd tried to load in Mayan some sample of these files, but I'm not able to view these documents.
Someone can aid me, to address this problem?
Thanks.
See the example attached.
XML Electronic Invoices
XML Electronic Invoices
- Attachments
-
- eInvoice.zip
- (9.6 KiB) Downloaded 173 times
Re: XML Electronic Invoices
XML is just data, like JSON or a CSV file. We need to find a program that can render the XML into an image or a PDF in order to be able to support the e-invoice format.
Re: XML Electronic Invoices
Is this the expected look of the e-invoice?
Re: XML Electronic Invoices
Ciao eriggs,
no, this is a notification notification, with default style sheet defined for this kind of documents.
The eInvoice can use use a different style sheet.
My question is how can I manage these kinds of documents using Mayan-Edms.
no, this is a notification notification, with default style sheet defined for this kind of documents.
The eInvoice can use use a different style sheet.
My question is how can I manage these kinds of documents using Mayan-Edms.
- Attachments
-
- IT01234567890_FPR02.xml.html-1.png (155.29 KiB) Viewed 6651 times
Re: XML Electronic Invoices
I don't need to use a specific application, i just enough to associate these documents to the correct XLST file; I'm not able to understand how render the invoices on XML format, loaded inside Mayan-edms with a specific XLST file.
Re: XML Electronic Invoices
hello,
I have exactly the same problem when handling electronic invoices as XML files.
But actually it happens with any other XMLs. It seems mayan tryes to read them as an image.
I'm running mayan edms under docker compose and pretty default setup: mayanedms/mayanedms:3, Postgresql 13 and Redis.
This is the output I get in the console:
and this is how it looks like under documents view:
Is there a way to let mayan analize this kind of files, even as plain text?
I just need them processed and text analyzed, I don't care to get a nice view as like transformed to pdf.
Thanks in advance.
I have exactly the same problem when handling electronic invoices as XML files.
But actually it happens with any other XMLs. It seems mayan tryes to read them as an image.
I'm running mayan edms under docker compose and pretty default setup: mayanedms/mayanedms:3, Postgresql 13 and Redis.
This is the output I get in the console:
Code: Select all
app_1 | mayan.apps.converter.backends.python <389> [ERROR] "get_page_count() line 185 Exception determining page count using Pillow; cannot identify image file <File: /var/lib/mayan/document_storage/dc92ba13-5879-442a-9df0-664496574337>"
app_1 | [2021-03-09 14:00:12,968: ERROR/ForkPoolWorker-2] Exception determining page count using Pillow; cannot identify image file <File: /var/lib/mayan/document_storage/dc92ba13-5879-442a-9df0-664496574337>
I just need them processed and text analyzed, I don't care to get a nice view as like transformed to pdf.
Thanks in advance.
Re: XML Electronic Invoices
I'm testing a workaround, appening a "content-type" string on top of my XML files.
This way I get the file preview and OCR result, but "content" page it's still blank.
"File metadata" aswell now gets filled of correct values, and not the actual file content.
lastly, my console output isn't all good. After every file upload I get this, but I'm not sure what it means.
This way I get the file preview and OCR result, but "content" page it's still blank.
"File metadata" aswell now gets filled of correct values, and not the actual file content.
Code: Select all
Content-type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="UTF-8"?>
...
Code: Select all
postgresql_1 | 2021-03-10 02:09:23.154 UTC [5422] ERROR: duplicate key value violates unique constraint "file_caching_cachepartition_cache_id_name_aa955bb8_uniq"
postgresql_1 | 2021-03-10 02:09:23.154 UTC [5422] DETAIL: Key (cache_id, name)=(2, version-3620792b-9c3c-44a2-a3bd-71b4ed20ceca-38) already exists.
postgresql_1 | 2021-03-10 02:09:23.154 UTC [5422] STATEMENT: INSERT INTO "file_caching_cachepartition" ("cache_id", "name") VALUES (2, 'version-3620792b-9c3c-44a2-a3bd-71b4ed20ceca-38') RETURNING "file_caching_cachepartition"."id"
app_1 | mayan.apps.documents.models.document_version_models <383> [ERROR] "get_intermediate_file() line 260 Error creating intermediate file "intermediate_file"; ."
app_1 | [2021-03-10 02:09:23,703: ERROR/ForkPoolWorker-1] Error creating intermediate file "intermediate_file"; .
app_1 | mayan.apps.documents.models.document_page_models <383> [ERROR] "get_image() line 252 Error creating page cache file "base_image"; "
app_1 | [2021-03-10 02:09:23,707: ERROR/ForkPoolWorker-1] Error creating page cache file "base_image";