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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0045184
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2020-10-05 08:462020-11-18 12:21
Reporterrafael_salmeanView Statuspublic 
Assigned Tojorge-garcia 
PrioritynormalResolutionno change requiredFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tojorge-garcia
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0045184: Unsafe division may cause division by 0

DescriptionOne of our clients has encountered a situation where the till crashes and a cache refresh is needed.

After some research, a division by 0 was found and a failsafe was put in place.

Solution discussed directly with Antonio Moreno.
Proposed SolutionAdded diff file as proposed solution.
TagsNo tags attached.
Attached Filesdiff file icon order.diff [^] (807 bytes) 2020-10-05 08:46 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0124478)
jorge-garcia (reporter)
2020-11-18 12:21

After discussing with reporter:

OB Product's API (PaidReceipts.java) to load ticket from backoffice does not load those lines from the ticket that are marked as deleted (obposIsDeleted field in db). As these lines are not loaded, the problem reported in this issue could not happened in standard product.

For customer code, two different options we can provide:
  1) Do not load the obposisdeletedLines as PaidReceipts does right now
  2) In case those lines are required to be loaded in WebPOS, instead of adding all loaded lines to the lines of the ticket, set lines mark as obposIsDeleted to the deletedLines array of the ticket.

- Issue History
Date Modified Username Field Change
2020-10-05 08:46 rafael_salmean New Issue
2020-10-05 08:46 rafael_salmean Assigned To => Retail
2020-10-05 08:46 rafael_salmean File Added: order.diff
2020-10-05 08:46 rafael_salmean Triggers an Emergency Pack => No
2020-11-16 12:35 rafael_salmean Summary Deleting a Kept Ticket with discounts blocks Web POS => Unsafe division may cause division by 0
2020-11-16 12:35 rafael_salmean Description Updated View Revisions
2020-11-16 12:35 rafael_salmean Steps to Reproduce Updated View Revisions
2020-11-16 12:35 rafael_salmean Proposed Solution updated
2020-11-16 12:38 rafael_salmean Resolution time => 1607295600
2020-11-17 16:10 jorge-garcia Assigned To Retail => jorge-garcia
2020-11-17 16:54 jorge-garcia Status new => scheduled
2020-11-18 12:21 jorge-garcia Review Assigned To => jorge-garcia
2020-11-18 12:21 jorge-garcia Note Added: 0124478
2020-11-18 12:21 jorge-garcia Status scheduled => closed
2020-11-18 12:21 jorge-garcia Resolution open => no change required


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker