Openbravo Issue Tracking System - POS2 | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0051848 | POS2 | POS | public | 2023-03-14 10:56 | 2023-04-03 15:30 | |||||||
Reporter | prakashmurugesan88 | |||||||||||
Assigned To | prakashmurugesan88 | |||||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | 23Q3 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | gorka_gil | |||||||||||
OBNetwork customer | ||||||||||||
Support ticket | ||||||||||||
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 [^] | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
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 | bug_revision_view_page.php?rev_id=25794#r25794 | |||||||||
2023-03-30 07:20 | prakashmurugesan88 | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=25795#r25795 | |||||||||
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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|