Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0053644 | Retail Modules | Web POS Hardware Manager | public | 2023-10-11 13:01 | 2023-10-11 13:01 |
Reporter | jonae | ||||
Assigned To | Triage Platform Conn | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0053644: Add the possibility to choose the version for the QR generation | ||||
Description | Add the possibility to choose the version for the QR generation | ||||
Steps To Reproduce | 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. | ||||
Proposed Solution | - 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 | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2023-10-11 13:01 | jonae | New Issue | |||
2023-10-11 13:01 | jonae | Assigned To | => Triage Platform Conn | ||
2023-10-11 13:01 | jonae | Triggers an Emergency Pack | => No |
There are no notes attached to this issue. |