Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0047544 | Retail Modules | Web POS | public | 2021-08-13 08:17 | 2021-08-25 07:37 |
Reporter | caristu | ||||
Assigned To | ranjith_qualiantech_com | ||||
Priority | high | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR21Q4 | |||
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 | 0047544: addPaymentRounding utility function should be pure | ||||
Description | The addPaymentRounding[1] utility function should be pure. Currently it is not because it has side effects: it is modifying the received payload argument on some points, like here[2]. [1] https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/blob/master/web/org.openbravo.retail.posterminal/app/model/business-object/ticket/AddPaymentUtils.js#L180 [^] [2] https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/blob/master/web/org.openbravo.retail.posterminal/app/model/business-object/ticket/AddPaymentUtils.js#L252 [^] | ||||
Steps To Reproduce | . | ||||
Proposed Solution | Refactor the function to avoid doing modifications on the received payload. A possible solution is to make this function return also a new payload with the changes. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2021-08-13 08:17 | caristu | New Issue | |||
2021-08-13 08:17 | caristu | Assigned To | => Retail | ||
2021-08-13 08:17 | caristu | OBNetwork customer | => No | ||
2021-08-13 08:17 | caristu | Triggers an Emergency Pack | => No | ||
2021-08-13 08:19 | caristu | Description Updated | bug_revision_view_page.php?rev_id=22993#r22993 | ||
2021-08-13 08:19 | caristu | Description Updated | bug_revision_view_page.php?rev_id=22994#r22994 | ||
2021-08-23 10:55 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2021-08-23 12:06 | ranjith_qualiantech_com | Status | new => scheduled | ||
2021-08-24 16:37 | hgbot | Merge Request Status | => open | ||
2021-08-24 16:37 | hgbot | Note Added: 0131327 | |||
2021-08-25 07:37 | hgbot | Merge Request Status | open => approved | ||
2021-08-25 07:37 | hgbot | Resolution | open => fixed | ||
2021-08-25 07:37 | hgbot | Status | scheduled => closed | ||
2021-08-25 07:37 | hgbot | Fixed in Version | => RR21Q4 | ||
2021-08-25 07:37 | hgbot | Note Added: 0131334 | |||
2021-08-25 07:37 | hgbot | Note Added: 0131335 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|