Open jirihelmich opened 6 years ago
Just out of curiosity: is this a time travel issue?
What are the real world use cases?
(different Timezone between cashbox and Verification-Tool , I guess)
Hi, it is for testing purposes, so that I can see how the cashbox behaves if I fast forward to next month, how Monatbeleg is issued, etc.
I have now learned to begin in the past and fast forward to present, but it took me a weekend to figure this out as the error said the chaining value is wrong on the future bill, not the fact it is a future bill.
But yes, your case would break it as well.
Hi, now I have also a failed testcase with future dates. I am getting the following message in 0014_dep.json: "verificationResultDetailedMessage" : "Ein interner Fehler trat während der Validierung des Verkettungswerts auf."
Setting the time to 2019-10-25, the test is ok.
Attached you will find the dep.json and cryptographicMaterialContainer.json. I am testing with: java -jar regkassen-verification-1.1.1/regkassen-verification-depformat-1.1.1.jar -v -f -o ./output -i ./dep.json -c ./cryptographicMaterialContainer.json
Even though I pass the -f parameter:
Step 2 fails:
If the dep-export.json contain some future date bills. If I wait so that the export contains days that are all in the past, it passes.