Openbravo Issue Tracking System - POS2
View Issue Details
0052348POS2POSpublic2023-05-04 11:532023-05-11 06:47
dbaz 
dcontrera 
normalminorhave not tried
closedfixed 
5
 
23Q3 
approved
No
No
0052348: The width of the receipt should be higher with wider aspect ratios
The minimum value of the width of the receipt should be 35 rem, and it should happen when the aspect ratio is 4:3. Lower aspect ratio will continue having a width of 35rem

The maximum value of the width of the receipt should be 47.4rem, and it should happen when the aspect ratio is 16:9. Higher aspect ratios will continue having a width of 47.4rem

When the aspect ratio is between 4:3 and 16:9, the width should be proportional between 35rem and 47.4rem, which entails a variable width of 36.7%

In order to do that, ensure that the configurable layout that builds obpos2MainPOSApp, that currently is defined as:
   35rem 1fr
is changed to be defined as
   clamp(35rem, 36.7%, 47.4rem) 1fr
.
In order to do that, ensure that the configurable layout that builds obpos2MainPOSApp, that currently is defined as:
   35rem 1fr
is changed to be defined as
   clamp(35rem, 36.7%, 47.4rem) 1fr
No tags attached.
Issue History
2023-05-04 11:53dbazNew Issue
2023-05-04 11:53dbazAssigned To => Retail
2023-05-04 11:53dbazOBNetwork customer => No
2023-05-04 11:53dbazTriggers an Emergency Pack => No
2023-05-04 11:54dbazNote Added: 0149292
2023-05-08 20:19dbazNote Added: 0149450
2023-05-09 13:19guillermogilAssigned ToRetail => dcontrera
2023-05-09 21:45hgbotMerge Request Status => open
2023-05-09 21:45hgbotNote Added: 0149523
2023-05-10 08:51hgbotMerge Request Statusopen => approved
2023-05-10 08:51hgbotMerge Request Statusapproved => open
2023-05-11 06:45hgbotMerge Request Statusopen => approved
2023-05-11 06:47hgbotResolutionopen => fixed
2023-05-11 06:47hgbotStatusnew => closed
2023-05-11 06:47hgbotFixed in Version => 23Q3
2023-05-11 06:47hgbotNote Added: 0149586
2023-05-11 06:47hgbotNote Added: 0149587

Notes
(0149292)
dbaz   
2023-05-04 11:54   
NOTE: This MR will require the UX: approved tag
(0149450)
dbaz   
2023-05-08 20:19   
diff --git a/web-jspack/org.openbravo.pos2/src/components/MainPOSApp/MainPOSApp.config.json b/web-jspack/org.openbravo.pos2/src/components/MainPOSApp/MainPOSApp.config.json
index af44f2da6..e19ab9114 100644
--- a/web-jspack/org.openbravo.pos2/src/components/MainPOSApp/MainPOSApp.config.json
+++ b/web-jspack/org.openbravo.pos2/src/components/MainPOSApp/MainPOSApp.config.json
@@ -5,7 +5,7 @@
   "handOperation": "Any",
   "variantClass": "obpos2MainPOSApp obpos2MainPOSApp_Ticket",
   "columnCustomSizes": {
- "1": "35rem"
+ "1": "clamp(35rem, 36.7%, 47.4rem)"
   },
   "rowCustomSizes": {
     "1": "auto",
@@ -55,4 +55,4 @@
       "variantClass": "obpos2MainPOSApp-content"
     }
   ]
-}
\ No newline at end of file
+}
(0149523)
hgbot   
2023-05-09 21:45   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1774 [^]
(0149586)
hgbot   
2023-05-11 06:47   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 8f8c419d89080b89a7c08a00bf9962b8c10dd4ef
Author: Dante Contrera <dante.contrera@smfconsulting.es>
Date: 11-05-2023 04:47:55
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/8f8c419d89080b89a7c08a00bf9962b8c10dd4ef [^]

Fixed ISSUE-52348: The width of the receipt should be higher with wider aspect ratios

---
M web-jspack/org.openbravo.pos2/src/components/MainPOSApp/MainPOSApp.config.json
---
(0149587)
hgbot   
2023-05-11 06:47   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1774 [^]