Openbravo Issue Tracking System - POS2 | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0056112 | POS2 | POS | public | 2024-07-25 17:29 | 2024-08-13 10:54 |
Reporter | ivazquez | ||||
Assigned To | Rajesh_18 | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | pi | ||||
Target Version | pi | Fixed in Version | 24Q4 | ||
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 | 0056112: In payment window, if the payment amount is 0, the SubtotalLines Summary field show undefined <currencySymbol> | ||||
Description | Found when using prepayments, including a little customization but probably replicated if the prepayment amount is set to 0. The customization allows the user to set a custom prepayment for each ticket, including a 0% prepayment, thus setting the prepayment amount to 0. When this happens, the subtotal summary line shows the undefined <currencySymbol> tag. Technical details: The component SubtotalLines renders a TicketSummaryView component. This component tries to display the payment amount. At some point, it checks if the parameter grossAmount passed from SubtotalLines to TicketSummaryView is true (in this case, 0 is falsy for js). This causes the TicketSummaryView component to try to display the amount of lines, but SubtotalLines component passes the no lines parameter. This makes the component calculate the amount to render as undefined, finally showing undefined in the POS2. | ||||
Steps To Reproduce | -Make all the configuration to use PrePayment -Go to the WebPOS -Go to the Payment Section -Select the Prepayment -Check the undefined in the amout | ||||
Proposed Solution | In SubtotalLines.jsx component, when returning TicketSummaryView component, add lines={lines} parameter. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | noLines.png (146,844) 2024-07-25 17:29 https://issues.openbravo.com/file_download.php?file_id=20039&type=bug withParameter.png (154,417) 2024-07-25 17:29 https://issues.openbravo.com/file_download.php?file_id=20040&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2024-07-25 17:29 | ivazquez | New Issue | |||
2024-07-25 17:29 | ivazquez | Assigned To | => Retail | ||
2024-07-25 17:29 | ivazquez | File Added: noLines.png | |||
2024-07-25 17:29 | ivazquez | Triggers an Emergency Pack | => No | ||
2024-07-25 17:29 | ivazquez | File Added: withParameter.png | |||
2024-07-26 07:57 | guillermogil | Status | new => acknowledged | ||
2024-07-26 08:32 | Rajesh_18 | Assigned To | Retail => Rajesh_18 | ||
2024-07-26 08:32 | Rajesh_18 | Status | acknowledged => scheduled | ||
2024-07-26 09:04 | hgbot | Note Added: 0167376 | |||
2024-08-13 10:54 | hgbot | Resolution | open => fixed | ||
2024-08-13 10:54 | hgbot | Status | scheduled => closed | ||
2024-08-13 10:54 | hgbot | Note Added: 0168021 | |||
2024-08-13 10:54 | hgbot | Fixed in Version | => 24Q4 | ||
2024-08-13 10:54 | hgbot | Note Added: 0168022 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|