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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0045911
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2021-02-17 06:312021-02-19 13:46
ReportermarvintmView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionfixedFixed in VersionRR21Q2
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0045911: Opening an order from the backend fails in Safari

DescriptionCurrently 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.
Steps To ReproduceClick on Open Receipt selector. Search.
Select one order. Realise that the order is never opened, and an exception happens in the mentioned code.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0126201)
hgbot (developer)
2021-02-19 10:18

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/307 [^]
(0126216)
hgbot (developer)
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 (developer)
2021-02-19 13:46

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/307 [^]

- Issue History
Date Modified Username Field Change
2021-02-17 06:31 marvintm New Issue
2021-02-17 06:31 marvintm Assigned To => Retail
2021-02-17 06:31 marvintm Triggers an Emergency Pack => No
2021-02-17 06:33 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2021-02-18 07:29 ranjith_qualiantech_com Status new => scheduled
2021-02-19 10:18 hgbot Note Added: 0126201
2021-02-19 13:46 hgbot Resolution open => fixed
2021-02-19 13:46 hgbot Status scheduled => closed
2021-02-19 13:46 hgbot Fixed in Version => RR21Q2
2021-02-19 13:46 hgbot Note Added: 0126216
2021-02-19 13:46 hgbot Note Added: 0126217


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker