Openbravo Issue Tracking System - POS2  | 
| View Issue Details | 
  | 
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0050893 | POS2 | POS | public | 2022-11-14 17:54 | 2022-12-02 11:06 | 
  | 
| Reporter | Aaron_Alvarez |   | 
| Assigned To | Aaron_Alvarez |   | 
| Priority | urgent | Severity | major | Reproducibility | always | 
| Status | closed | Resolution | fixed |   | 
| Platform |  | OS | 5 | OS Version |  | 
| Product Version |  |   | 
| Target Version |  | Fixed in Version | 23Q1 |   | 
| Merge Request Status | approved | 
| Review Assigned To | gorka_gil | 
| OBNetwork customer | Gold | 
| Support ticket |  | 
| Regression level | Code review | 
| Regression date |  | 
| Regression introduced in release |  | 
| Regression introduced by commit | https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/0725047418f157fd29ff16927243f25185c2a393 [^] | 
| Triggers an Emergency Pack | No | 
  | 
| Summary | 0050893: Optional discounts with giftNotification gives error when navigating to order discounts | 
| Description | When having a discount with giftNotification and optional application method it gives an error when navigating to order discounts | 
| Steps To Reproduce | - Go to Backend  
- Create a new discount free gift per total amount (in old openbravo versions it is needed to have installed the bytotal module) 
- In the discount check giftNotification and apply method have to be optional 
  * Amount for example can be 100  
  * Select a free product like for example body warmers 
- Go to POS2 
- Create a ticket with total more than 100 
- Go to order discounts 
 
ERROR: We get an error when navigating to order discounts | 
| Proposed Solution |  | 
| Additional Information |  | 
| Tags | No tags attached. | 
| Relationships | | caused by  | feature request  | 0050412 |   | closed  | Aaron_Alvarez  | POS2  | Optional free products discounts with the flag gift reminder notification, should also be shown in featured discounts  |  | related to  | defect  | 0050974 |   | closed  | ranjith_qualiantech_com  | Retail Modules  | [PROMO]- Buy X Get Y - Promotion is not triggered if the list of eligible products contains a product with other promotion  |  | related to  | defect  | 0051398 |   | closed  | ranjith_qualiantech_com  | POS2  | Optional free products discounts with the flag gift reminder notification, should also be shown in "Orders discounts"  |  | related to  | defect  | 0051399 |   | closed  | ranjith_qualiantech_com  | POS2  | Regression:Optional free products discounts with the flag gift reminder notification, should also be shown in featured discounts  |  
  | 
| Attached Files |  | 
  | 
| Issue History | 
| Date Modified | Username | Field | Change | 
| 2022-11-14 17:54 | Aaron_Alvarez | New Issue |  | 
| 2022-11-14 17:54 | Aaron_Alvarez | Assigned To |  => Aaron_Alvarez | 
| 2022-11-14 17:54 | Aaron_Alvarez | OBNetwork customer |  => No | 
| 2022-11-14 17:54 | Aaron_Alvarez | Triggers an Emergency Pack |  => No | 
| 2022-11-14 17:58 | Aaron_Alvarez | Relationship added | caused by 0050412 | 
| 2022-11-14 18:02 | Aaron_Alvarez | Regression level |  => Code review | 
| 2022-11-14 18:02 | Aaron_Alvarez | Regression introduced by commit |  => https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/0725047418f157fd29ff16927243f25185c2a393 [^] | 
| 2022-11-15 15:56 | hgbot | Merge Request Status |  => open | 
| 2022-11-15 15:56 | hgbot | Note Added: 0143621 |  | 
| 2022-11-16 16:11 | hgbot | Note Added: 0143719 |  | 
| 2022-11-23 11:01 | rafaroda | OBNetwork customer | No => Gold | 
| 2022-11-23 11:01 | rafaroda | Priority | normal => urgent | 
| 2022-11-30 21:59 | rafaroda | Relationship added | related to 0050974 | 
| 2022-12-01 11:47 | hgbot | Merge Request Status | open => approved | 
| 2022-12-01 11:47 | hgbot | Note Added: 0144301 |  | 
| 2022-12-01 11:47 | hgbot | Note Added: 0144302 |  | 
| 2022-12-01 11:49 | hgbot | Note Added: 0144303 |  | 
| 2022-12-01 11:49 | hgbot | Note Added: 0144304 |  | 
| 2022-12-02 11:06 | gorka_gil | Status | new => scheduled | 
| 2022-12-02 11:06 | gorka_gil | Status | scheduled => resolved | 
| 2022-12-02 11:06 | gorka_gil | Fixed in Version |  => 23Q1 | 
| 2022-12-02 11:06 | gorka_gil | Resolution | open => fixed | 
| 2022-12-02 11:06 | gorka_gil | Review Assigned To |  => gorka_gil | 
| 2022-12-02 11:06 | gorka_gil | Status | resolved => closed | 
| 2023-02-08 11:42 | rafaroda | Relationship added | related to 0051398 | 
| 2023-02-08 11:42 | rafaroda | Relationship added | related to 0051399 |