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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0051371
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Sessionsminorhave not tried2023-01-16 08:342023-01-17 11:04
ReportercaristuView Statuspublic 
Assigned Tocaristu 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0051371: Reasons and approvals info is persisted twice for the initial count user action

DescriptionHaving the sessions module installed, the reasons and approvals information is persisted twice
Steps To ReproduceHaving the sessions module installed:

1) Configure Open till user action to request reason and/or approval
2) Navigate to terminal organization and configure initial count difference limit to 30
3) Open the POS2 application
4) Execute a transaction with amount greater than 30 and pay it with cash
5) Go to the main menu and execute cashup
6) Let as cashup keeped an amount greater than 30
7) Finish cashup
8) Open the terminal and on initial count let expected amount as 0
7) Insert supervisor credentials to process the requested approval
8) Finish initial count
8) Go to the main manu and process the cashup again
9) Go to the backoffice, navigate to the Cashup History window and switch to the Approval/Reason History tab, note the the approval/reason information is duplicated (there are two records for the same initial count)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0051249 closednjimenez POS2 Action Reasons in Open till and Cashup with differences 

-  Notes
(0145437)
hgbot (developer)
2023-01-16 08:48

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/65 [^]
(0145450)
hgbot (developer)
2023-01-16 12:17

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions [^]
Changeset: 03791616900e33417100bad3ddadc1e3b67ac19d
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 16-01-2023 12:13:26
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/commit/03791616900e33417100bad3ddadc1e3b67ac19d [^]

fixes BUG-51371: Reasons and approvals persisted twice for the initial count

  When invoking the open till user action as a post hook of the initial
count user action, it was reusing the payload generated for the initial
count which contains the reasons and approvals user action.

  This caused that the reasons and approvals information was being added
twice by the state hook which eventually caused the information to be
persisted duplicated in the backoffice.

  To avoid this, we avoid passing the payload in the openTill function
used by the posthook, and just invoke the user action with an empty
payload. Note that this should not have any effect, as the openTill
state action does not use any information coming from the payload.

  If in the future the openTill state action needs information coming
from the payload it should be explicititly included in this openTill
function, instead of passing an empty object.

---
M web-jspack/org.openbravo.retail.sessions/src/model/till/TillUtils.js
M web-jspack/org.openbravo.retail.sessions/src/model/till/user-actions/OpenTill.js
---
(0145451)
hgbot (developer)
2023-01-16 12:17

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/65 [^]

- Issue History
Date Modified Username Field Change
2023-01-16 08:34 caristu New Issue
2023-01-16 08:34 caristu Assigned To => caristu
2023-01-16 08:34 caristu Triggers an Emergency Pack => No
2023-01-16 08:35 caristu Steps to Reproduce Updated View Revisions
2023-01-16 08:35 caristu Relationship added related to 0051249
2023-01-16 08:48 hgbot Note Added: 0145437
2023-01-16 12:17 hgbot Resolution open => fixed
2023-01-16 12:17 hgbot Status new => closed
2023-01-16 12:17 hgbot Note Added: 0145450
2023-01-16 12:17 hgbot Note Added: 0145451
2023-01-17 11:00 njimenez Steps to Reproduce Updated View Revisions
2023-01-17 11:04 njimenez Steps to Reproduce Updated View Revisions


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker