Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045867Retail ModulesDiscounts and Promotionspublic2021-01-19 09:052021-02-09 10:03
Leyre 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR21Q1RR21Q1 
marvintm
No
0045867: Discounts availability does not work properly in Web POS
Discounts availability does not work properly in Web POS
1. Configure a discount in the Backend, for example:
- Discount/Promotion Type: Price adjustment
- Active = Y
- Availability: Monday and Tuesday (do not inform the fields "Starting Time" and "Ending Time").
- Define the discount for a product, for example Baby carrier and select "Included Products" = Only those defined.

2. Open a terminal on Monday and verify that the discount is applied correctly to the "Baby Carrier" product.

3. In the Backend, open the discount defined in point 1, and inform:
- Availability: Tuesday -> "Starting Time" Tuesday = 8:00:00 and "Ending Time" Tuesday =18:05:00

Result: Open the terminal again the next Tuesday and verify that the discount is not applied to the "Baby Carrier" product.

Attached image of the configuration of the discount.
No tags attached.
blocks defect 0045748 closed ranjith_qualiantech_com Discounts availability does not work properly in Web POS 
Issue History
2021-02-09 07:35marvintmTypedefect => backport
2021-02-09 07:35marvintmTarget Version => RR21Q1
2021-02-09 10:03hgbotResolutionopen => fixed
2021-02-09 10:03hgbotStatusscheduled => closed
2021-02-09 10:03hgbotFixed in Version => RR21Q1
2021-02-09 10:03hgbotNote Added: 0126051

Notes
(0126051)
hgbot   
2021-02-09 10:03   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: 874af75e5540ad2366470ed65a14512a4f0189fa
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-02-09T14:33:30+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/874af75e5540ad2366470ed65a14512a4f0189fa [^]

Fixed ISSUE-45867: Discount Time should be validated with POS time instead of server time

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