Openbravo Issue Tracking System - POS2
View Issue Details
0050306POS2POSpublic2022-09-22 00:282022-10-03 20:16
jlopez 
jlopez 
normalminorhave not tried
closedfixed 
5
 
23Q1 
No
0050306: [PROMO] Start/End Date in the tab 'Discount and Promotions || Store Set'
Create 2 new optional fields/columns in the Store Set Tab in the Discounts and promotions window named ‘Starting Date’ and ‘Ending Date’.
These new parameters should be taken into account when executing the logic in the Discounts and promotions engine.

When defining the Store Set filters:
* In Apply to Store Set included in the list:
  - If the Starting Date and Ending Date are empty: The discount applies only to the store set selected in the list.
  - If Starting Date has a value: The discount applies only to the store set selected in the list but only in dates after the starting date.
  - If Ending Date has a value: The discount applies only to the store set selected in the list but only in dates before the ending date.
  - If both date fields have value: The discount applies only to the store set selected in the list but only in dates after the starting date and before the ending date.
* In Apply to all Store Set excluding the ones in the list:
  - If the Starting Date and Ending Date are empty: The discount applies to all store sets except the ones selected in the list.
  - If Starting Date has a value: The discount applies only to the store sets and the ones included in the list are excluded but only for dates after the starting date.
  - If Ending Date has a value: The discount applies only to the store sets and the ones included in the list are excluded but only for dates before the ending date
  - If both date fields have value: The discount applies only to the store sets and the ones included in the list are excluded but only for dates after the starting date and before the ending date.

https://openbravo.atlassian.net/browse/RM-1567 [^]
*
No tags attached.
depends on feature request 0050275 closed jlopez Retail Modules [PROMO] Start/End Date in the tab 'Discount and Promotions || Organization' 
Issue History
2022-09-22 00:28jlopezNew Issue
2022-09-22 00:28jlopezAssigned To => jlopez
2022-09-22 00:28jlopezTriggers an Emergency Pack => No
2022-09-22 00:58hgbotNote Added: 0141294
2022-10-03 14:36jlopezRelationship addeddepends on 0050275
2022-10-03 20:16hgbotResolutionopen => fixed
2022-10-03 20:16hgbotStatusnew => closed
2022-10-03 20:16hgbotFixed in Version => 23Q1
2022-10-03 20:16hgbotNote Added: 0141603
2022-10-03 20:16hgbotNote Added: 0141604

Notes
(0141294)
hgbot   
2022-09-22 00:58   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1227 [^]
(0141603)
hgbot   
2022-10-03 20:16   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: c546d8b887cf8baf9bf22ae19dde21344035f594
Author: Javier López <javier.lopez@precognis.com>
Date: 03-10-2022 20:15:56
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/c546d8b887cf8baf9bf22ae19dde21344035f594 [^]

Fixes FR-50306: Start/End Date in the tab 'Discount and Promotions || Store Set'

MR: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1227 [^]

---
M src-db/database/model/tables/OBPOS2_STORE_SET_M_OFFER.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-test/org/openbravo/pos2/process/StorePerimeterReportTest.java
M src/org/openbravo/pos2/master/DiscountFilterStoreSet.java
M src/org/openbravo/pos2/process/StorePerimeterReport.java
M web-jspack/org.openbravo.pos2/src/core/discount/__test__/initDiscountsCache.test.js
M web-jspack/org.openbravo.pos2/src/core/discount/initDiscountsCache.js
---
(0141604)
hgbot   
2022-10-03 20:16   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1227 [^]