Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045707Retail Modules[POS2] POSpublic2021-01-11 11:072021-01-22 08:19
ebecerra 
rqueralta 
normalmajoralways
closedfixed 
5
 
RR21Q2 
No
0045707: Incorrect field alignment when text needs to overflow (Hardware Manager)
When a field in a template has an "n" character limit and the next field is right-aligned and the value passed to the first field is greater than the width of the field, the second field is not aligned as expected.

For example in the Cash Up template:
 
<line>
      <text align ="left" length="25" bold="true">...</text>
      <text align ="right" length="14" bold="true">...</text>
</line>

See the attachment image.
N/A
No tags attached.
causes defect 0047395 closed ranjith_qualiantech_com OB.UTIL.encodeXMLMultiLineComponent returns empty string if there are lines larger than the width in 21Q2 
png CashUp.png (63,876) 2021-01-11 11:07
https://issues.openbravo.com/file_download.php?file_id=15233&type=bug
png
Issue History
2021-01-11 11:07ebecerraNew Issue
2021-01-11 11:07ebecerraAssigned To => Retail
2021-01-11 11:07ebecerraFile Added: CashUp.png
2021-01-11 11:07ebecerraTriggers an Emergency Pack => No
2021-01-11 11:09javietxeIssue Monitored: javietxe
2021-01-11 11:09javietxeResolution time => 1612134000
2021-01-13 05:49rqueraltaAssigned ToRetail => rqueralta
2021-01-13 05:50rqueraltaStatusnew => scheduled
2021-01-15 09:46guilleaerProjectPOS2 => Retail Modules
2021-01-21 05:25hgbotNote Added: 0125701
2021-01-21 05:25hgbotNote Added: 0125702
2021-01-22 08:18hgbotResolutionopen => fixed
2021-01-22 08:18hgbotStatusscheduled => closed
2021-01-22 08:18hgbotNote Added: 0125721
2021-01-22 08:18hgbotFixed in Version => RR21Q2
2021-01-22 08:18hgbotNote Added: 0125722
2021-01-22 08:18hgbotNote Added: 0125723
2021-01-22 08:18hgbotNote Added: 0125724
2021-01-22 08:19marvintmNote Added: 0125725
2021-09-02 17:35ranjith_qualiantech_comRelationship addedcauses 0047395

Notes
(0125701)
hgbot   
2021-01-21 05:25   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/135 [^]
(0125702)
hgbot   
2021-01-21 05:25   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/271 [^]
(0125721)
hgbot   
2021-01-22 08:18   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/271 [^]
(0125722)
hgbot   
2021-01-22 08:18   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 4521ac94a0eaf92d66b2531dd654f691695d4e04
Author: Rafael Queralta <rafaelcuba81@gmail.com>
Date: 2021-01-22T07:18:16+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/4521ac94a0eaf92d66b2531dd654f691695d4e04 [^]

Fixed BUG-45707: Implemented new function to avoid alignment problems and when text needs to overflow

---
M web/org.openbravo.retail.posterminal/res/printcashup.xml
---
(0125723)
hgbot   
2021-01-22 08:18   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: f54508b79167c058a8c1fa2e5bfa70ffcb549afe
Author: Rafael Queralta <rafaelcuba81@gmail.com>
Date: 2021-01-20T14:10:45-05:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/f54508b79167c058a8c1fa2e5bfa70ffcb549afe [^]

Fixed BUG-45707: Implemented new function for split string in multiple lines

---
M web/org.openbravo.mobile.core/source/utils/ob-utilities.js
---
(0125724)
hgbot   
2021-01-22 08:18   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/135 [^]
(0125725)
marvintm   
2021-01-22 08:19   
One important comment regarding the fix: we have added a new utility function that can be used in the templates to automatically split a long label into several lines. We have also updated the standard cashup report to use this function.

Custom templates will need also to be updated if they want to take advantage of the functionality this function provides.