Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045911Retail ModulesWeb POSpublic2021-02-17 06:312021-02-19 13:46
marvintm 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR21Q2 
No
0045911: Opening an order from the backend fails in Safari
Currently opening an order from the backend is failing in Safari (it works correctly in Chrome). It fails with an exception in the following code:

function addPayments(ticket, payload) {
    const payments = ticket.payments.map(payment => {
      const newPayment = {
        ...payment,
        date: new Date(payment.paymentDate),
        paymentDate: new Date(payment.paymentDate).toISOString(), <---

The reason is that in Safari creating a date with the constructor fails if the format is not exactly what Safari expects.
Click on Open Receipt selector. Search.
Select one order. Realise that the order is never opened, and an exception happens in the mentioned code.
No tags attached.
Issue History
2021-02-17 06:31marvintmNew Issue
2021-02-17 06:31marvintmAssigned To => Retail
2021-02-17 06:31marvintmTriggers an Emergency Pack => No
2021-02-17 06:33ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2021-02-18 07:29ranjith_qualiantech_comStatusnew => scheduled
2021-02-19 10:18hgbotNote Added: 0126201
2021-02-19 13:46hgbotResolutionopen => fixed
2021-02-19 13:46hgbotStatusscheduled => closed
2021-02-19 13:46hgbotFixed in Version => RR21Q2
2021-02-19 13:46hgbotNote Added: 0126216
2021-02-19 13:46hgbotNote Added: 0126217

Notes
(0126201)
hgbot   
2021-02-19 10:18   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/307 [^]
(0126216)
hgbot   
2021-02-19 13:46   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 1b914e3c3f3924e0adedc34a0dd624c98c8ae935
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-02-19T12:46:49+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/1b914e3c3f3924e0adedc34a0dd624c98c8ae935 [^]

Fixed ISSUE-45911: Update Date format for Receipt Payment Date
* When opening paid receipt, paymentdate format should be date instead datetime

---
M src/org/openbravo/retail/posterminal/PaidReceipts.java
---
(0126217)
hgbot   
2021-02-19 13:46   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/307 [^]