Urigo / accounter-fullstack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: uploading document fails and gets permanently stuck

gilgardosh opened this issue · comments

One of the first steps on document uploading on the server side, is sending it to Green Invoice to retrieve OCR data.
If the process fails afterwards, no document is created on the DB but Green Invoice will block new uses of the same document, noting that "this doc already exists".

Current solution is to manually delete it from the Green Invoice portal.

Complete fix will be to add step in case of failure - to delete the draft doc from Green Invoice.