Openbravo Issue Tracking System - Retail Modules
View Issue Details
0053644Retail ModulesWeb POS Hardware Managerpublic2023-10-11 13:012023-10-11 13:01
jonae 
Triage Platform Conn 
normalminorhave not tried
newopen 
5
 
 
No
0053644: Add the possibility to choose the version for the QR generation
Add the possibility to choose the version for the QR generation
Currently the QR version generated in the hardware manager can not be selected, so the QR generated is in the default version (7). It would be great to add this possibility in the hardware manager properties in the same way the quality and the size of the QR is choosen.
- In the openbravohw.properties.template add:
# Possible version: 1-40
qr.version = 7

- In the com.openbravo.pos.printer.ticket.PrintItemQR class, a new map of properties needs to be added to the encode request.
HashMap<EncodeHintType, Object> map = new HashMap<>();
        map.put(EncodeHintType.QR_VERSION, version); // (1-40)
        genqr = MatrixToImageWriter.toBufferedImage(
            new QRCodeWriter().encode(code, BarcodeFormat.QR_CODE, 1, 1, map),
            new MatrixToImageConfig(0xFF000000, 0x00000000));


where version variable is the version set in the openbravohw.properties file
No tags attached.
Issue History
2023-10-11 13:01jonaeNew Issue
2023-10-11 13:01jonaeAssigned To => Triage Platform Conn
2023-10-11 13:01jonaeTriggers an Emergency Pack => No

There are no notes attached to this issue.