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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049875
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajorhave not tried2022-07-24 20:592024-01-15 15:54
ReportercbernerView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionunable to reproduceFixed 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

0049875: Setting distinct price and then completing a product configuration step, will reset the value after finishing it

DescriptionThis is a bug with product configuration, it seems is using old state and returning it, changing the previously modified price if done so.

Gif is provided to illustrate the issue.

After further investigation, we saw that the problem comes from the updateProductModifiersExtraPrice function, which on addProductConfiguration action will recalculate the product modifiers extra prices and change the line price. It does it by taking the base product amount/price, which is incorrect, it should take into account line price.

We propose another solution on the Proposed Solution part of this issue.
Steps To Reproduce1. Login WebPOS
2. Add a GPS Mini product to the ticket
3. Click on the line and Price Modification, change the value to something else
4. Finish the service configuration process, the price is reset

This can also be reproduced out of the configuration step:
1. Add a GPS Handheld
2. Modify its price
3. Click on Edit Services and finish the step

Price is wrongly reset to the original value, instead of the modified one.
Proposed SolutionWe propose recalculating the price of product modifier just in two cases, when the action to add a product modifier or remove one is done, we recalculate the price, but only if there are new or less product modifiers(right now is executed each time any product configuration is done, and doesn't matter if it is a product modifier or another type of product configuration, like beeper).

This should be done by running it inside the addProductConfiguration action, and taking into account the previous state, which we preserve and can check. If in the previous state we had more or less product modifiers, we recalculate it using the ticketline amount/price by adding or subtracting the proper amount corresponding to the added/removed product modifiers with extra price.

We propose also recalculating the price on SetPrice action as a posthook, by first setting the new price, and then adding all the modifers with extra price to the final price, and setting the final amount of the ticketline to that(price user set + extra modifiers prices).
TagsNo tags attached.
Attached Filesgif file icon price modification changes original value.gif [^] (680,336 bytes) 2022-07-24 20:59

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0159317)
asier_perez (developer)
2024-01-15 15:54

The issue is no longer reproducible.

- Issue History
Date Modified Username Field Change
2022-07-24 20:59 cberner New Issue
2022-07-24 20:59 cberner Assigned To => Retail
2022-07-24 20:59 cberner File Added: price modification changes original value.gif
2022-07-24 20:59 cberner Triggers an Emergency Pack => No
2022-07-24 20:59 cberner Assigned To Retail => cberner
2022-07-24 20:59 cberner Status new => acknowledged
2022-08-05 11:40 cberner Description Updated View Revisions
2022-08-05 11:40 cberner Proposed Solution updated
2022-08-11 13:48 cberner Assigned To cberner => Triage Platform Base
2024-01-15 15:54 cberner Status acknowledged => scheduled
2024-01-15 15:54 asier_perez Note Added: 0159317
2024-01-15 15:54 asier_perez Status scheduled => closed
2024-01-15 15:54 asier_perez Resolution open => unable to reproduce


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker