Closed barredterra closed 5 years ago
Dear @barredterra,
thank you for your entry. The quoted code above is a sample print format. As you note, it provides a libracore server for generation of the QR-code.
However, anyone can choose any alternative server. The source code for the QR-code generator is available as an open source tool, please refer to https://github.com/lasalesi/phpqrcode Therefore, again, this is only a (working) sample server. In case of concern, please use your own server.
As for your note the ERPNext should generate the QR-code: I basically agree. However, up to this point there is no library available that would fullfil this (even including charts and the like with the used toolchain is afaik not possible if not with a separate server process). We are always happy to accept pull requests.
We will add a disclaimer note regarding the server.
Expected behvauour
QR-Code containing sensitive information should be generated on ERPNext Server.
Actual behaviour
Complete Sales Invoice information is sent to a libracore server, which provides the qr-code. I don't know the Swiss data protection regulations but this seems to be very problematic.
https://github.com/libracore/erpnextswiss/blob/800ccc9cf6b713aba378bf88a662fcadcb8c7f3c/erpnextswiss/erpnextswiss/print_format/qr_sales_invoice/qr_sales_invoice.json#L10