Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0051848 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [POS2] POS | major | always | 2023-03-14 10:56 | 2023-04-03 15:30 | |||
Reporter | prakashmurugesan88 | View Status | public | |||||
Assigned To | prakashmurugesan88 | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 23Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 7afc65886d9d | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | gorka_gil | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0051848: Js Error occurs on selecting discount in Gift Reminder Notification | |||||||
Description | Js Error occurs on selecting discount in Gift Reminder Notification Issue occurs when gift product configured in Discount and Promotion is not available in the Store For example in the video Product "TOTEBAGBELIE Unique TU" is not available in the price list of the Store | |||||||
Steps To Reproduce | Configure Buy X Gift Y discount with 2 gift products with 1 gift product included in pricelist of the store and another not included in price list. Now try to add the product so that Gift Reminder Notification is shown for the discount. In following code it tries to fetch gift product details from db, https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/blob/master/web-jspack/org.openbravo.pos2/src/components/Discounts/FeaturedDiscount/FeaturedDiscountProductSelection/FeaturedDiscountProductSelection.jsx#L36 [^] https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/blob/master/web-jspack/org.openbravo.pos2/src/components/Discounts/FeaturedDiscount/FeaturedDiscountProductSelection/FeaturedDiscountProductSelection.jsx#L107 [^] In given scenario though 2 gift products are configured but only one gift product is returned from BO Therefore in following line it filters gift products based on gift product configuration and gift product info from BO, https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/blob/master/web-jspack/org.openbravo.pos2/src/components/Discounts/FeaturedDiscount/FeaturedDiscountProductSelection/FeaturedDiscountProductSelectionDialogContent/FeaturedDiscountProductSelectionDialogContent.jsx#L25 [^] Here it iterates 2 items for both product in configuration as return productList as below, productList = [{Object}, null] Here for product info not received from db, it returns null. Therefore in following line it throws error for the null product, https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/blob/master/web-jspack/org.openbravo.pos2/src/components/Discounts/FeaturedDiscount/FeaturedDiscountProductSelection/FeaturedDiscountProductSelectionDialogContent/FeaturedDiscountProductSelectionDialogContent.jsx#L32 [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0147518) prakashmurugesan88 (developer) 2023-03-14 11:02 |
Created following Merge Request, https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1590 [^] |
(0148203) hgbot (developer) 2023-04-03 15:28 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^] Changeset: 7afc65886d9d7da9c80e25d4455e4bda1bb6065e Author: Prakash M <prakash@qualiantech.com> Date: 03-04-2023 13:28:35 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/7afc65886d9d7da9c80e25d4455e4bda1bb6065e [^] Fixed ISSUE-51848: Fixed js error in gift reminder notification * Issue occurs when gift product configured is not available for the store --- M web-jspack/org.openbravo.pos2/src/components/Discounts/FeaturedDiscount/FeaturedDiscountProductSelection/FeaturedDiscountProductSelectionDialogContent/FeaturedDiscountProductSelectionDialogContent.jsx --- |
Issue History | |||
Date Modified | Username | Field | Change |
2023-03-14 10:56 | prakashmurugesan88 | New Issue | |
2023-03-14 10:56 | prakashmurugesan88 | Assigned To | => prakashmurugesan88 |
2023-03-14 10:56 | prakashmurugesan88 | Triggers an Emergency Pack | => No |
2023-03-14 11:02 | prakashmurugesan88 | Note Added: 0147518 | |
2023-03-14 11:02 | prakashmurugesan88 | Status | new => scheduled |
2023-03-30 07:18 | prakashmurugesan88 | Steps to Reproduce Updated | View Revisions |
2023-03-30 07:20 | prakashmurugesan88 | Steps to Reproduce Updated | View Revisions |
2023-04-03 15:28 | hgbot | Resolution | open => fixed |
2023-04-03 15:28 | hgbot | Status | scheduled => resolved |
2023-04-03 15:28 | hgbot | Fixed in Version | => 23Q3 |
2023-04-03 15:28 | hgbot | Note Added: 0148203 | |
2023-04-03 15:29 | gorka_gil | Review Assigned To | => gorka_gil |
2023-04-03 15:29 | gorka_gil | Status | resolved => closed |
2023-04-03 15:30 | gorka_gil | Fixed in SCM revision | => https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/7afc65886d9d7da9c80e25d4455e4bda1bb6065e [^] |
2023-04-17 17:02 | rafaroda | Relationship added | related to 0052139 |
Copyright © 2000 - 2009 MantisBT Group |