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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0055882
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajoralways2024-07-01 15:022024-08-11 17:55
ReporterlmonrealView Statuspublic 
Assigned ToSABARINATH P 
PriorityhighResolutionfixedFixed in Version24Q4
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

0055882: Scaled Price discount generaring undefined (reading 'id')

DescriptionIf there is a scaled price discount configured with some products, and these products are not in the price list of the store POS triggers error:

Cannot read properties of undefined (reading 'id')

Is not possible to do anything unless cache is cleared.

See video from livebuilds:

https://drive.google.com/file/d/1REmDl6y_xAb2oXbPSdkUlnLVzxx4qjk5/view?usp=sharing [^]
Steps To Reproduce1. Configure a scaled price for a product-> See all configuration in the video
https://drive.google.com/file/d/1REmDl6y_xAb2oXbPSdkUlnLVzxx4qjk5/view?usp=sharing [^]

2.Do a sale with this discount
3.Remove this product from the Price list of the store that you are going to test. Refresh data
4. Open POS and load an order that contains the discount
5. See POS shows error message and is not possible to exit unless cache is cleared

See video from livebuilds:

https://drive.google.com/file/d/1REmDl6y_xAb2oXbPSdkUlnLVzxx4qjk5/view?usp=sharing [^]
Proposed SolutionIt does not matter if the product is in the price list of the store, the error should not be triggered.
TagsNo tags attached.
Attached Filespng file icon ISSUE SCALED PRICE.png [^] (227,166 bytes) 2024-07-01 15:02

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0166958)
hgbot (developer)
2024-07-15 10:02

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2797 [^]
(0167939)
hgbot (developer)
2024-08-11 17:54

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2797 [^]
(0167940)
hgbot (developer)
2024-08-11 17:54

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 69851d81915311ce2e343c6803aade35d542479d
Author: sabarinath palanisamy <sabarinath.palanisamy.ext@openbravo.com>
Date: 11-08-2024 15:54:35
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/69851d81915311ce2e343c6803aade35d542479d [^]

Fixed ISSUE-55882: Validate products only if its included in Price list.

---
M web-jspack/org.openbravo.pos2/src/core/discount/discountsVisibility/__test__/discountsVisibilityChecks.test.js
M web-jspack/org.openbravo.pos2/src/core/discount/discountsVisibility/discountsVisibilityChecks.js
---

- Issue History
Date Modified Username Field Change
2024-07-01 15:02 lmonreal New Issue
2024-07-01 15:02 lmonreal Assigned To => Retail
2024-07-01 15:02 lmonreal File Added: ISSUE SCALED PRICE.png
2024-07-01 15:02 lmonreal Triggers an Emergency Pack => No
2024-07-01 15:05 lmonreal Steps to Reproduce Updated View Revisions
2024-07-01 15:05 lmonreal Issue Monitored: martinsdan
2024-07-04 09:08 guilleaer Status new => acknowledged
2024-07-08 08:31 SABARINATH P Assigned To Retail => SABARINATH P
2024-07-08 08:31 SABARINATH P Status acknowledged => scheduled
2024-07-15 10:02 hgbot Note Added: 0166958
2024-08-11 17:54 hgbot Resolution open => fixed
2024-08-11 17:54 hgbot Status scheduled => resolved
2024-08-11 17:54 hgbot Note Added: 0167939
2024-08-11 17:54 hgbot Fixed in Version => 24Q4
2024-08-11 17:54 hgbot Note Added: 0167940
2024-08-11 17:55 javierRodriguez Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker