Openbravo Issue Tracking System - POS2
View Issue Details
0052437POS2POSpublic2023-05-12 12:362023-05-22 10:54
AugustoMauch 
meriem_azaf 
normalminorhave not tried
closedfixed 
5
 
23Q3 
approved
No
No
0052437: Shopping cart icon in portrait mode should display number of products in the ticket, not number of lines
The shopping cart icon that is displayed in the application bar in portrait mode should render the number of products in the instead, instead of the number of rows as it is currently doing.

See attached image
- Open POS2
- Switch to portrait mode
- Add two lines to the ticket
- Increase the quantity of one of them from 1 to 3. Note that the shopping cart icon is rendering a "2" (2 lines), when it should render a "4" (4 products).
No tags attached.
png ShoppingCartIcon.png (285,029) 2023-05-12 12:36
https://issues.openbravo.com/file_download.php?file_id=18526&type=bug
Issue History
2023-05-12 12:36AugustoMauchNew Issue
2023-05-12 12:36AugustoMauchAssigned To => meriem_azaf
2023-05-12 12:36AugustoMauchFile Added: ShoppingCartIcon.png
2023-05-12 12:36AugustoMauchOBNetwork customer => No
2023-05-12 12:36AugustoMauchTriggers an Emergency Pack => No
2023-05-12 12:36AugustoMauchStatusnew => scheduled
2023-05-15 17:05hgbotMerge Request Status => open
2023-05-15 17:05hgbotNote Added: 0149710
2023-05-22 10:53hgbotMerge Request Statusopen => approved
2023-05-22 10:54hgbotResolutionopen => fixed
2023-05-22 10:54hgbotStatusscheduled => closed
2023-05-22 10:54hgbotFixed in Version => 23Q3
2023-05-22 10:54hgbotNote Added: 0150050
2023-05-22 10:54hgbotNote Added: 0150051

Notes
(0149710)
hgbot   
2023-05-15 17:05   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1795 [^]
(0150050)
hgbot   
2023-05-22 10:54   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: a1b7a88178ac446e3f2198294c8a33793cedbe1c
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 22-05-2023 08:53:40
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/a1b7a88178ac446e3f2198294c8a33793cedbe1c [^]

Fixes ISSUE-52437: Shopping cart icon in portrait mode should display number of products in the ticket, not number of lines

The shopping cart icon that is displayed in the application bar in portrait mode should render the number of products in the instead, instead of the number of rows as it is currently doing.

The problem was in the content of badgeInfo that containt the length of the ticket's lines not the sum of the quatity of each one.

---
A web-jspack/org.openbravo.pos2/src/components/ShoppingCart/__test__/ShoppingCartButton.test.jsx
M web-jspack/org.openbravo.pos2/src/components/ShoppingCart/ShoppingCartButton.jsx
---
(0150051)
hgbot   
2023-05-22 10:54   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1795 [^]