Openbravo Issue Tracking System - Retail Modules
View Issue Details
0048859Retail ModulesWeb POSpublic2022-03-21 15:272022-05-16 08:31
jose_duque 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
30Openbravo Appliance 14.04
 
RR22Q3 
marvintm
No
0048859: The invoiceDate has a timezone issue
When printing an invoice we have the orderDate that can have a timezone problem if the date is at the day before at 11PM.
If the orderDate is a day at 11PM UTC then the date should be this day+1 if we are in UTC+1.

In livebuilds POS
At 09:10
Change Customer, Add Product and Complete Ticket.
At 09:11
Open Last Ticket, Do Invoice and Complete it
Check the printed invoice. Date is 09:10. But it should be 09:11.
No tags attached.
diff 48859_20Q3_posterminal.diff (710) 2022-04-26 14:04
https://issues.openbravo.com/file_download.php?file_id=16945&type=bug
Issue History
2022-03-21 15:27jose_duqueNew Issue
2022-03-21 15:27jose_duqueAssigned To => Retail
2022-03-21 15:27jose_duqueTriggers an Emergency Pack => No
2022-03-21 15:27jose_duqueIssue generated from0048777
2022-03-22 10:16jose_duqueSummaryThe invoiceDate is not available for templates in the POS => The invoiceDate has a timezone issue
2022-03-22 10:16jose_duqueDescription Updatedbug_revision_view_page.php?rev_id=23795#r23795
2022-03-22 10:16jose_duqueSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23797#r23797
2022-03-22 11:03martinsdanIssue Monitored: martinsdan
2022-04-08 00:13rqueraltaAssigned ToRetail => rqueralta
2022-04-08 00:13rqueraltaStatusnew => scheduled
2022-04-11 06:49marvintmAssigned Torqueralta => prakashmurugesan88
2022-04-12 16:46jose_duqueIssue cloned0049043
2022-04-19 07:33ranjith_qualiantech_comAssigned Toprakashmurugesan88 => ranjith_qualiantech_com
2022-04-21 09:48jose_duqueIssue cloned0049098
2022-04-25 06:28hgbotNote Added: 0136700
2022-04-25 06:30ranjith_qualiantech_comSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23945#r23945
2022-04-25 07:48hgbotResolutionopen => fixed
2022-04-25 07:48hgbotStatusscheduled => closed
2022-04-25 07:48hgbotFixed in Version => RR22Q3
2022-04-25 07:48hgbotNote Added: 0136701
2022-04-25 07:48hgbotNote Added: 0136702
2022-04-26 14:04ranjith_qualiantech_comFile Added: 48859_20Q3_posterminal.diff
2022-05-11 07:45ranjith_qualiantech_comNote Added: 0137135
2022-05-11 07:45ranjith_qualiantech_comStatusclosed => new
2022-05-11 07:45ranjith_qualiantech_comResolutionfixed => open
2022-05-11 07:45ranjith_qualiantech_comFixed in VersionRR22Q3 =>
2022-05-12 07:43hgbotNote Added: 0137203
2022-05-13 11:38ranjith_qualiantech_comStatusnew => scheduled
2022-05-16 08:31hgbotNote Added: 0137298
2022-05-16 08:31hgbotNote Added: 0137299
2022-05-16 08:31marvintmStatusscheduled => resolved
2022-05-16 08:31marvintmFixed in Version => RR22Q3
2022-05-16 08:31marvintmResolutionopen => fixed
2022-05-16 08:31marvintmReview Assigned To => marvintm
2022-05-16 08:31marvintmStatusresolved => closed

Notes
(0136700)
hgbot   
2022-04-25 06:28   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/777 [^]
(0136701)
hgbot   
2022-04-25 07:48   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: c04c6fac0fc446db6bb249cc2833c6718c09d616
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 25-04-2022 09:51:34
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/c04c6fac0fc446db6bb249cc2833c6718c09d616 [^]

Fixed ISSUE-48859: Update Ticket CreationDate when creating invoice in POS

---
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/CompleteTicketUtils.js
---
(0136702)
hgbot   
2022-04-25 07:48   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/777 [^]
(0137135)
ranjith_qualiantech_com   
2022-05-11 07:45   
Invoice Date was not printed correctly in following case
Change System time to GMT-2
Open livebuilds VBS-1
1) Change Customer to "Arturo Montoro"
2) Issue Invoice
3) Add Product and complete it
In hardware manager. Both receipt date&time and invoice date&time was printed correctly.
4) Open last paid receipt
5) Print (Print receipt and Print invoice)
In hardware manager. Both receipt date and invoice date was printed wrongly (time was printed correctly). It was printed one day before.
(0137203)
hgbot   
2022-05-12 07:43   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/795 [^]
(0137298)
hgbot   
2022-05-16 08:31   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: d7132eb2c30c9583a61212ff0e3894bc3eb29f7c
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 16-05-2022 06:30:47
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/d7132eb2c30c9583a61212ff0e3894bc3eb29f7c [^]

Related to ISSUE-48859: Updated dataFormat for receipt orderDate & paymentDate
* When loading paid receipt, orderDate and order paymentDate should have date without time
* Invoice Date should be updated by calculating serverdate with timezone offset

---
M src/org/openbravo/retail/posterminal/Invoices.java
M src/org/openbravo/retail/posterminal/PaidReceipts.java
M src/org/openbravo/retail/posterminal/utility/InvoiceUtils.java
---
(0137299)
hgbot   
2022-05-16 08:31   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/795 [^]