Openbravo Issue Tracking System - Retail Modules
View Issue Details
0048701Retail ModulesWeb POSpublic2022-03-01 14:222022-03-03 08:18
malsasua 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR22Q2 
No
0048701: Payment data is retrieved as a String instead of json
When reprint functionality is used, the receipt loaded from the backoffice is loaded with the paymentData property as string, instead of Json
. in live:
1. load POS
2. select Arturo Montoro
3. Menu > issue invoice
4. add line
5. click in total button
6. add payment
7. in Chrome Dev Tools execute:
OB.MobileApp.model.receipt.get('payments').at(0).set('paymentData', {"a":1});
OB.MobileApp.model.receipt.save()
8. complete the ticket
9. Open receipt > load previous receipt
10. in Chrome Dev Tools:
add breakpoint in line 111514 (see screenshot)
11. Menu > print: select invoice and click in "invoice" button
the execution is stopped in breakpont
check the value of
data.at(0).receiptPayments.at(0).paymentData
it is one string instead of json
(see screenshot 2)
No tags attached.
png 1.png (41,491) 2022-03-01 14:23
https://issues.openbravo.com/file_download.php?file_id=16681&type=bug
png

png 2.png (48,444) 2022-03-01 14:23
https://issues.openbravo.com/file_download.php?file_id=16682&type=bug
png

diff 48701_19Q3_posterminal.diff (1,583) 2022-03-03 05:45
https://issues.openbravo.com/file_download.php?file_id=16690&type=bug
Issue History
2022-03-01 14:22malsasuaNew Issue
2022-03-01 14:22malsasuaAssigned To => Retail
2022-03-01 14:22malsasuaTriggers an Emergency Pack => No
2022-03-01 14:23malsasuaFile Added: 1.png
2022-03-01 14:23malsasuaFile Added: 2.png
2022-03-01 17:37malsasuaNote Added: 0135367
2022-03-02 08:03ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2022-03-02 08:35ranjith_qualiantech_comStatusnew => scheduled
2022-03-02 15:25hgbotNote Added: 0135391
2022-03-03 05:45ranjith_qualiantech_comFile Added: 48701_19Q3_posterminal.diff
2022-03-03 08:18hgbotNote Added: 0135411
2022-03-03 08:18hgbotResolutionopen => fixed
2022-03-03 08:18hgbotStatusscheduled => closed
2022-03-03 08:18hgbotFixed in Version => RR22Q2
2022-03-03 08:18hgbotNote Added: 0135412

Notes
(0135367)
malsasua   
2022-03-01 17:37   
This problem is reported by a customer in 19Q3. A backport is required
(0135391)
hgbot   
2022-03-02 15:25   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/732 [^]
(0135411)
hgbot   
2022-03-03 08:18   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/732 [^]
(0135412)
hgbot   
2022-03-03 08:18   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 7b5494f4d51fb91a8bbde9df8ff342741d96d9df
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 02-03-2022 14:32:11
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/7b5494f4d51fb91a8bbde9df8ff342741d96d9df [^]

Fixed ISSUE-48701: PaymentData converted to json when loading invoices

---
M src/org/openbravo/retail/posterminal/Invoices.java
---