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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0051833
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2023-03-13 06:252023-03-22 07:45
Reporterranjith_qualiantech_comView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityhighResolutionfixedFixed in VersionRR23Q2
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

0051833: Discount API throws error if manualPromotions presents

DescriptionWhen discount api is called with manualPromotions, then error occurs.
Steps To Reproduce1) Open https://livebuilds.openbravo.com/retail_modules_pgsql_pi/api [^]
2) Choose "discounts" from dropdown
3) Click Tryit out
4) Paste the attached body "DiscountAPI_body.txt"
5) Click Execute

Response:
{
  "error": "TypeError: Cannot read property 'some' of undefined"
}
TagsNo tags attached.
Attached Filestxt file icon DiscountAPI_body.txt [^] (1,237 bytes) 2023-03-13 08:34 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0147510)
hgbot (developer)
2023-03-14 08:04

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/94 [^]
(0147797)
hgbot (developer)
2023-03-22 07:45

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/94 [^]
(0147798)
hgbot (developer)
2023-03-22 07:45

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: 708e28dca6224665e503fb2bef2fc48b588ad325
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 22-03-2023 06:45:24
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/708e28dca6224665e503fb2bef2fc48b588ad325 [^]

Fixed ISSUE-51833: Discounts filters should be validated when applying discounts
* If discount filters are not present, then discount calculation should be continued

---
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/engine/discount-rules.js
---

- Issue History
Date Modified Username Field Change
2023-03-13 06:25 ranjith_qualiantech_com New Issue
2023-03-13 06:25 ranjith_qualiantech_com Assigned To => ranjith_qualiantech_com
2023-03-13 06:25 ranjith_qualiantech_com Triggers an Emergency Pack => No
2023-03-13 08:28 ranjith_qualiantech_com Status new => scheduled
2023-03-13 08:34 ranjith_qualiantech_com File Added: DiscountAPI_body.txt
2023-03-14 08:04 hgbot Note Added: 0147510
2023-03-22 07:45 hgbot Resolution open => fixed
2023-03-22 07:45 hgbot Status scheduled => closed
2023-03-22 07:45 hgbot Note Added: 0147797
2023-03-22 07:45 hgbot Fixed in Version => RR23Q2
2023-03-22 07:45 hgbot Note Added: 0147798


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker