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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0057875
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Loyalty Programs for Web POSmajoralways2025-02-05 13:462025-02-20 06:51
ReporterivazquezView Statuspublic 
Assigned Toivazquez 
PriorityhighResolutionno change requiredFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Versionpi
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned Toguillermogil
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0057875: Error in the calculation of total points when several API calls are made at the same time.

DescriptionIf through the API, we make several calls to add and subtract points to a business partner, and these EDL Requests that are created have the same Execution Date (which means that they were executed at the same time and not staggered as it should happen, leaving two seconds of difference between one and another), the calculation in the total points of this business partner will be incorrect.
Steps To Reproduce-Create a Loyalty Program
-Through the POS, create a business partner and add it to the loyalty program.

Now, from the API, make two simultaneous calls, one adding and one subtracting points.
The idea is that the EDL Requests are executed at the same time, that is where the problem is reproduced.

The API used is the following:

/ws/org.openbravo.retail.api.ImportService/Subscription.

Then, compare the total points with the sum of the earned points and you will see that they differ.


Video reproducing the issue in livebuilds:

https://drive.google.com/file/d/1Uy2ADNArjlBzMEoGlnhRQ7CFw7sMxlxr/view?usp=sharing [^]
TagsNo tags attached.
Attached Filesjpeg file icon 600bbb01-4594-4ba0-9002-1f610a95e1cc.jpeg [^] (153,004 bytes) 2025-02-05 13:46

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2025-02-05 13:46 ivazquez New Issue
2025-02-05 13:46 ivazquez Assigned To => Retail
2025-02-05 13:46 ivazquez File Added: 600bbb01-4594-4ba0-9002-1f610a95e1cc.jpeg
2025-02-05 13:46 ivazquez Triggers an Emergency Pack => No
2025-02-07 06:44 guillermogil Assigned To Retail => ivazquez
2025-02-07 06:44 guillermogil Status new => acknowledged
2025-02-20 06:51 guillermogil Status acknowledged => scheduled
2025-02-20 06:51 guillermogil Review Assigned To => guillermogil
2025-02-20 06:51 guillermogil Status scheduled => closed
2025-02-20 06:51 guillermogil Resolution open => no change required


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker