When a document with the same name as a document, which has been submitted for printing recently, is submitted and before the previous document with the same name was printed, the new document overwrites the older document. This leads to the printing of the same (newer) document twice, while the older document has never been printed.
Issue
When a document with the same name as a document, which has been submitted for printing recently, is submitted and before the previous document with the same name was printed, the new document overwrites the older document. This leads to the printing of the same (newer) document twice, while the older document has never been printed.
Solution
Add document's UUID to the filepath.