Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030730Retail ModulesDiscounts and Promotionspublic2015-09-01 19:112015-09-25 11:58
egoitz 
mario_castello 
immediatemajoralways
closedfixed 
5
 
RR15Q4 
marvintm
No
0030730: The current date to check if a discount should be applied or not is taken using GMT timezone
To check if a discount should be used or not a query on the sql lite database is executed using the date('now') clause.
the database is returning the current date assuming that the timezone is GMT.
If you are on a different timezone, and the current date is different than the date on the gmt timezone, you can apply discounts that should't or viceversa
-Put your computer (client side) on gmt+2 on hour 01:30 am
-Open a webpos on chrome
-open the developers tool and the resources section
-go to the database and execute
select date('now')
that returns a date one day previous than the date of your computer
No tags attached.
causes defect 0034517 closed jorge-garcia [Performance] Discounts calculation is slower when the user increase the number of lines of the receipt 
Issue History
2015-09-01 19:11egoitzNew Issue
2015-09-01 19:11egoitzAssigned To => Retail
2015-09-01 19:11egoitzResolution time => 1441317600
2015-09-01 19:11egoitzTriggers an Emergency Pack => No
2015-09-12 16:22mario_castelloAssigned ToRetail => mario_castello
2015-09-12 16:26hgbotCheckin
2015-09-12 16:26hgbotNote Added: 0080360
2015-09-12 16:26hgbotStatusnew => resolved
2015-09-12 16:26hgbotResolutionopen => fixed
2015-09-12 16:26hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1ba7e9aa75f69ac696431167c9fbb26cb0e55dbf [^]
2015-09-19 10:11OrekariaReview Assigned To => marvintm
2015-09-25 11:58marvintmStatusresolved => closed
2015-09-25 11:58marvintmFixed in Version => RR15Q4
2016-11-15 17:16jorge-garciaRelationship addedcauses 0034517

Notes
(0080360)
hgbot   
2015-09-12 16:26   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 1ba7e9aa75f69ac696431167c9fbb26cb0e55dbf
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Sat Sep 12 08:25:41 2015 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1ba7e9aa75f69ac696431167c9fbb26cb0e55dbf [^]

Fixed issue 30730: Set the current client date as parameter with ISO format

---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
M web/org.openbravo.retail.posterminal/js/model/executor.js
---