naturapeute / aposto-server

Aposto is a 💸 free, 🌱 light, ✨ easy-to-use and 📖 open-source billing software dedicated to Swiss therapists. It allows generating invoices in compliance with new standard Tarif 590 in a few seconds.
https://aposto.ch/
Other
6 stars 0 forks source link

Wrong datamatrix_string? #3

Closed yandeu closed 2 years ago

yandeu commented 2 years ago

Hi,

What exactly is service.float_amount and is it the right implementation?

https://github.com/etceterra/aposto-server/blob/ae40624a888c27c7b9801b58326b3f80c4c8005f/pdf_generation/contents/invoice_content.py#L185


I got the invoice below from another vendor (HealthAdvisor), but the calculation doesn't match.

The string ends with #120.00#3#3#0000. Why would there be two 3 in there?

1645791660894-534636a3-2a51-4ea6-b751-2e627dff2648_2 (1) .

yandeu commented 2 years ago

I get it. It's the last missing digit from the Luhn algorithm.

212121 00800(3)

212121 11200(3)