Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0045699 | Retail Modules | Web POS | public | 2021-01-07 18:19 | 2021-01-12 11:37 |
|
Reporter | ucarrion | |
Assigned To | rqueralta | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | RR19Q3.3 | |
Target Version | | Fixed in Version | RR21Q2 | |
Merge Request Status | approved |
Review Assigned To | |
OBNetwork customer | Gold |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0045699: There's an issue with the timezones when reprinting invoices |
Description | There's an issue with the timezones when reprinting invoices. The reprinted date is always the day before (one hour less 23:00:00)
The request done to the InvoicesHeader comes with the timezone of the server therefore it returns: 2020-01-07 00:00:00 +0000
It you are on a timezone (e.g.- gmt-1) the conversed date in the frot-end is 2020-01-06 23:00:00 -0100 |
Steps To Reproduce | Video: https://drive.google.com/file/d/1yjz6sMaZxNnPfrhaX84vi2UE1xNt1-Wk/view [^]
As Livebuilds is in UTC, put your laptop in UTC-1.
If you put it in UTC-X you will see that the returned our is 2020-01-07 00:00:00 -X hours
- Put your laptop at least in UTC-1
- Login on livebuilds (the test we've done is on 19Q3)
- Create an invoice
Add a product
Put a nominal customer
Menu -> Invoice this receipt
Pay
- Load the previously created ticket
- Menu -> Print this Receipt
You will notice the date shown in the popup is wrong
If you close the popup, open the developers tools, go to network tab and open the popup again you will see the request to InvoiceHeader that comes with the timezone.
Bear in mind that the printed date on the Invoice Receipt is wrong too.
|
Proposed Solution | orderDate from invoice header should not come with timezone as the value store in the database has not.
|
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2021-01-07 18:19 | ucarrion | New Issue | |
2021-01-07 18:19 | ucarrion | Assigned To | => Retail |
2021-01-07 18:19 | ucarrion | OBNetwork customer | => Gold |
2021-01-07 18:19 | ucarrion | Resolution time | => 1612134000 |
2021-01-07 18:19 | ucarrion | Triggers an Emergency Pack | => No |
2021-01-07 18:25 | guillermogil | Description Updated | bug_revision_view_page.php?rev_id=22017#r22017 |
2021-01-07 23:52 | rqueralta | Assigned To | Retail => rqueralta |
2021-01-07 23:53 | rqueralta | Status | new => scheduled |
2021-01-08 07:16 | guillermogil | version | => RR19Q3.3 |
2021-01-08 07:16 | guillermogil | Description Updated | bug_revision_view_page.php?rev_id=22018#r22018 |
2021-01-08 07:16 | guillermogil | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=22020#r22020 |
2021-01-08 07:16 | guillermogil | Proposed Solution updated | |
2021-01-08 15:45 | hgbot | Merge Request Status | => open |
2021-01-08 15:45 | hgbot | Note Added: 0125339 | |
2021-01-08 17:42 | hgbot | Merge Request Status | open => approved |
2021-01-08 17:42 | hgbot | Resolution | open => fixed |
2021-01-08 17:42 | hgbot | Status | scheduled => closed |
2021-01-08 17:42 | hgbot | Note Added: 0125340 | |
2021-01-08 17:42 | hgbot | Fixed in Version | => RR21Q2 |
2021-01-08 17:42 | hgbot | Note Added: 0125341 | |
2021-01-11 08:24 | guilleaer | Note Added: 0125342 | |
2021-01-11 08:24 | guilleaer | Status | closed => new |
2021-01-11 08:24 | guilleaer | Resolution | fixed => open |
2021-01-11 08:24 | guilleaer | Fixed in Version | RR21Q2 => |
2021-01-11 08:25 | hgbot | Resolution | open => fixed |
2021-01-11 08:25 | hgbot | Status | new => closed |
2021-01-11 08:25 | hgbot | Fixed in Version | => RR21Q2 |
2021-01-11 08:25 | hgbot | Note Added: 0125343 | |
2021-01-11 15:26 | guillermogil | Status | closed => new |
2021-01-11 15:26 | guillermogil | Resolution | fixed => open |
2021-01-11 15:26 | guillermogil | Fixed in Version | RR21Q2 => |
2021-01-11 15:32 | guillermogil | Note Added: 0125351 | |
2021-01-11 15:48 | guillermogil | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=22021#r22021 |
2021-01-11 21:58 | hgbot | Note Added: 0125352 | |
2021-01-12 11:37 | hgbot | Resolution | open => fixed |
2021-01-12 11:37 | hgbot | Status | new => closed |
2021-01-12 11:37 | hgbot | Fixed in Version | => RR21Q2 |
2021-01-12 11:37 | hgbot | Note Added: 0125364 | |
2021-01-12 11:37 | hgbot | Note Added: 0125365 | |
Notes |
|
(0125339)
|
hgbot
|
2021-01-08 15:45
|
|
|
|
(0125340)
|
hgbot
|
2021-01-08 17:42
|
|
|
|
(0125341)
|
hgbot
|
2021-01-08 17:42
|
|
|
|
|
Executing when server are client are in the same timezone is not working.
OB.Utilities.Date.addTimezoneOffset(new Date("2021-01-05T00:00:00+01:00"))
Mon Jan 04 2021 23:00:00 GMT+0100 (Central European Standard Time) |
|
|
(0125343)
|
hgbot
|
2021-01-11 08:25
|
|
|
|
|
Issue reopened as it has added a regression using the same timezone on the server and the frontend |
|
|
(0125352)
|
hgbot
|
2021-01-11 21:58
|
|
|
|
(0125364)
|
hgbot
|
2021-01-12 11:37
|
|
|
|
(0125365)
|
hgbot
|
2021-01-12 11:37
|
|
|