Openbravo Issue Tracking System - POS2 | |||||||||||||
| View Issue Details | |||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
| 0048812 | POS2 | POS | public | 2022-03-16 11:52 | 2022-03-22 13:20 | ||||||||
| Reporter | ebecerra | ||||||||||||
| Assigned To | ebecerra | ||||||||||||
| Priority | normal | Severity | minor | Reproducibility | have not tried | ||||||||
| Status | closed | Resolution | fixed | ||||||||||
| Platform | OS | 5 | OS Version | ||||||||||
| Product Version | |||||||||||||
| Target Version | Fixed in Version | ||||||||||||
| Merge Request Status | approved | ||||||||||||
| Review Assigned To | |||||||||||||
| OBNetwork customer | No | ||||||||||||
| Support ticket | |||||||||||||
| Regression level | |||||||||||||
| Regression date | |||||||||||||
| Regression introduced in release | |||||||||||||
| Regression introduced by commit | |||||||||||||
| Triggers an Emergency Pack | No | ||||||||||||
| Summary | 0048812: Add a function to OB.App.PrintUtils to generate valid image tag for webUSB/HWM configurations | ||||||||||||
| Description | Add a new function to OB.App.PrintUtils to allow generate the TAG <image> in print templates based on the prinmter (webUSB or hardware manager) | ||||||||||||
| Steps To Reproduce | N/A | ||||||||||||
| Proposed Solution | /** * Get image TAG according printer type * * @param printerType {string} - Printer type (OB.App.TerminalProperty.get('terminal').printertype) * @param align {string} - Image align * @param base64Data {string} Image code in Base64 * @returns {string} Tag: <image ...>...</image> */ getImageTagFromBase64: (printerType, align, base64Data) => { const imgAlign = align ? ` align="${align}"` : ''; const type = printerType === 'GENERICUSB' ? '' : ' type="data"'; const prefix = printerType === 'GENERICUSB' ? 'data:png;base64,' : ''; return `<image${imgAlign}${type}>${prefix}${base64Data}</image>`; } | ||||||||||||
| Additional Information | |||||||||||||
| Tags | No tags attached. | ||||||||||||
| Relationships |
| ||||||||||||
| Attached Files | |||||||||||||
| Issue History | |||||||||||||
| Date Modified | Username | Field | Change | ||||||||||
| 2022-03-16 11:52 | ebecerra | New Issue | |||||||||||
| 2022-03-16 11:52 | ebecerra | Assigned To | => Retail | ||||||||||
| 2022-03-16 11:52 | ebecerra | OBNetwork customer | => No | ||||||||||
| 2022-03-16 11:52 | ebecerra | Triggers an Emergency Pack | => No | ||||||||||
| 2022-03-16 11:53 | ebecerra | Assigned To | Retail => ebecerra | ||||||||||
| 2022-03-16 11:53 | ebecerra | Status | new => scheduled | ||||||||||
| 2022-03-16 12:00 | hgbot | Merge Request Status | => open | ||||||||||
| 2022-03-16 12:00 | hgbot | Note Added: 0135771 | |||||||||||
| 2022-03-16 12:55 | guilleaer | Summary | Add a function to OB.App.PrintUtils => Add a function to OB.App.PrintUtils to generate valid image tag for webUSB/HWM configurations | ||||||||||
| 2022-03-16 12:55 | guilleaer | Description Updated | bug_revision_view_page.php?rev_id=23781#r23781 | ||||||||||
| 2022-03-22 13:17 | hgbot | Merge Request Status | open => approved | ||||||||||
| 2022-03-22 13:20 | hgbot | Resolution | open => fixed | ||||||||||
| 2022-03-22 13:20 | hgbot | Status | scheduled => closed | ||||||||||
| 2022-03-22 13:20 | hgbot | Fixed in Version | => RR22Q2 | ||||||||||
| 2022-03-22 13:20 | hgbot | Note Added: 0135920 | |||||||||||
| 2022-03-22 13:20 | hgbot | Note Added: 0135921 | |||||||||||
| 2022-03-30 09:48 | fermin_gascon | Relationship added | has duplicate 0048657 | ||||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||