Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0030730
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Discounts and Promotionsmajoralways2015-09-01 19:112015-09-25 11:58
ReporteregoitzView Statuspublic 
Assigned Tomario_castello 
PriorityimmediateResolutionfixedFixed in VersionRR15Q4
StatusclosedFix in branchFixed in SCM revision1ba7e9aa75f6
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0030730: The current date to check if a discount should be applied or not is taken using GMT timezone

DescriptionTo 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
Steps To Reproduce-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
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
causes defect 0034517 closedjorge-garcia [Performance] Discounts calculation is slower when the user increase the number of lines of the receipt 

-  Notes
(0080360)
hgbot (developer)
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
---

- Issue History
Date Modified Username Field Change
2015-09-01 19:11 egoitz New Issue
2015-09-01 19:11 egoitz Assigned To => Retail
2015-09-01 19:11 egoitz Resolution time => 1441317600
2015-09-01 19:11 egoitz Triggers an Emergency Pack => No
2015-09-12 16:22 mario_castello Assigned To Retail => mario_castello
2015-09-12 16:26 hgbot Checkin
2015-09-12 16:26 hgbot Note Added: 0080360
2015-09-12 16:26 hgbot Status new => resolved
2015-09-12 16:26 hgbot Resolution open => fixed
2015-09-12 16:26 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1ba7e9aa75f69ac696431167c9fbb26cb0e55dbf [^]
2015-09-19 10:11 Orekaria Review Assigned To => marvintm
2015-09-25 11:58 marvintm Status resolved => closed
2015-09-25 11:58 marvintm Fixed in Version => RR15Q4
2016-11-15 17:16 jorge-garcia Relationship added causes 0034517


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker