Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0045589
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POScriticalalways2020-12-15 18:372020-12-18 06:46
ReporterguillermogilView Statuspublic 
Assigned Toprakashmurugesan88 
PriorityimmediateResolutionfixedFixed in VersionRR21Q1
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionRR19Q3.3SCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0045589: Not possible to click several buttons after an addProduct

DescriptionNot possible to click several buttons after an addProduct.
There are several exceptions in the code that avoid to finish the addProdct functionality but the ProcessController is never closed.

e.g.-
in _addProduct:

                  if (OB.MobileApp.model.get('inPaymentTab')) {
                    if (args.options && args.options.blockAddProduct) {
                      OB.error(
                        'An add product is executed. At this point, this action is not allowed. Skipping product ' +
                          p.get('_identifier')
                      );
                      if (args && args.attrs && args.attrs.obposEpccode) {
                        OB.UTIL.RfidController.removeEpc(
                          args.attrs.obposEpccode
                        );
                      }
                      return;
                    }
                  }
That returns breaks the flow as it is not executing the finalCallback.
There are several other cases across the code.

The code is still the same on PI although it is on the legacy function. Releases <20Q4 will have this issue in the case exposed.
Steps To ReproduceDo an addProduct in the payment tab
ProcessController starts
Log is raised: An add product is executed. At this point, this action is not allowed. Skipping product
Process controller is never finished

After that you get the 120s timeout from the ProcessController
Buttons are deactivated forever
Proposed SolutionReturn the callback on the _addProduct with the success as false
TagsNo tags attached.
Attached Filespatch file icon I45589_19Q3_V2.patch [^] (5,423 bytes) 2020-12-17 16:38 [Show Content]
patch file icon I45589_19Q4_V2.patch [^] (5,380 bytes) 2020-12-17 16:49 [Show Content]
patch file icon I45589_20Q1_20Q2_V2.patch [^] (5,183 bytes) 2020-12-17 17:33 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0045617RR20Q4.2 closedprakashmurugesan88 Not possible to click several buttons after an addProduct 
depends on backport 0045618RR20Q3.3 closedprakashmurugesan88 Not possible to click several buttons after an addProduct 

-  Notes
(0124895)
hgbot (developer)
2020-12-17 10:48

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/221 [^]
(0124907)
hgbot (developer)
2020-12-18 06:46

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/221 [^]
(0124908)
hgbot (developer)
2020-12-18 06:46

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 9279ebd20b374e2a1d9095183a383b9be435a1cc
Author: Prakash M <prakash@qualiantech.com>
Date: 2020-12-17T14:54:31+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/9279ebd20b374e2a1d9095183a383b9be435a1cc [^]

Fixed BUG-45589: Fixes process timeout when error raised in addProduct
* Added callback with success as false to handle process completion

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---

- Issue History
Date Modified Username Field Change
2020-12-15 18:37 guillermogil New Issue
2020-12-15 18:37 guillermogil Assigned To => Retail
2020-12-15 18:37 guillermogil Resolution time => 1608246000
2020-12-15 18:37 guillermogil Triggers an Emergency Pack => No
2020-12-15 18:45 guillermogil Description Updated View Revisions
2020-12-16 05:45 prakashmurugesan88 Assigned To Retail => prakashmurugesan88
2020-12-16 06:05 prakashmurugesan88 Status new => scheduled
2020-12-17 05:08 prakashmurugesan88 File Added: I45589_20Q3.patch
2020-12-17 07:14 prakashmurugesan88 File Deleted: I45589_20Q3.patch
2020-12-17 07:14 prakashmurugesan88 File Added: I45589_20Q3_20Q2_20Q1.patch
2020-12-17 07:14 prakashmurugesan88 File Added: I45589_19Q4.patch
2020-12-17 07:14 prakashmurugesan88 File Added: I45589_19Q3.patch
2020-12-17 10:37 prakashmurugesan88 Status scheduled => acknowledged
2020-12-17 10:38 prakashmurugesan88 Status acknowledged => scheduled
2020-12-17 10:48 hgbot Note Added: 0124895
2020-12-17 16:38 prakashmurugesan88 File Deleted: I45589_19Q3.patch
2020-12-17 16:38 prakashmurugesan88 File Added: I45589_19Q3_V2.patch
2020-12-17 16:38 prakashmurugesan88 File Deleted: I45589_19Q4.patch
2020-12-17 16:49 prakashmurugesan88 File Added: I45589_19Q4_V2.patch
2020-12-17 17:28 prakashmurugesan88 File Added: I45589_20Q1_V2.patch
2020-12-17 17:33 prakashmurugesan88 File Deleted: I45589_20Q3_20Q2_20Q1.patch
2020-12-17 17:33 prakashmurugesan88 File Deleted: I45589_20Q1_V2.patch
2020-12-17 17:33 prakashmurugesan88 File Added: I45589_20Q1_20Q2_V2.patch
2020-12-18 06:46 hgbot Resolution open => fixed
2020-12-18 06:46 hgbot Status scheduled => closed
2020-12-18 06:46 hgbot Note Added: 0124907
2020-12-18 06:46 hgbot Fixed in Version => RR21Q1
2020-12-18 06:46 hgbot Note Added: 0124908


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker