Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041596Retail ModulesWeb POSpublic2019-08-07 12:492023-05-29 10:30
samuel_nicuesa 
rqueralta 
highmajoralways
closedfixed 
5
 
RR19Q4 
marvintm
No
0041596: Change amount is not shown while printing a duplicate of a ticket in Web POS
Change amount is not shown while printing a duplicate of a ticket in Web POS

[BO]

Preference OBPOS_print.receipt should be configured as 'Y'

[WEB POS]

Create a ticket and add product

Choose the cash payment method.

Set an amount greater than the total.

A receipt is displayed with the change amount (correct).

Open the paid ticket created by searching it.

Choose Print this Receipt in the menu.

The change is not being printed in the template

I could see that this part of the code returns undefined :

 var changelabel = OB.UTIL.getChangeLabelFromChangePayments(order.get('changePayments'));
No tags attached.
related to defect 0052586 closed ranjith_qualiantech_com Change amount is not shown while printing a duplicate of a ticket in Web POS 
png 1.png (6,890) 2019-08-07 12:50
https://issues.openbravo.com/file_download.php?file_id=13214&type=bug
png

png 2.png (11,179) 2019-08-07 12:50
https://issues.openbravo.com/file_download.php?file_id=13215&type=bug
png
Issue History
2019-08-07 12:49samuel_nicuesaNew Issue
2019-08-07 12:49samuel_nicuesaAssigned To => Retail
2019-08-07 12:49samuel_nicuesaResolution time => 1566943200
2019-08-07 12:49samuel_nicuesaTriggers an Emergency Pack => No
2019-08-07 12:50samuel_nicuesaFile Added: 1.png
2019-08-07 12:50samuel_nicuesaFile Added: 2.png
2019-08-14 00:42rqueraltaAssigned ToRetail => rqueralta
2019-08-14 00:42rqueraltaStatusnew => scheduled
2019-08-15 19:04hgbotCheckin
2019-08-15 19:04hgbotNote Added: 0114024
2019-08-15 19:04hgbotStatusscheduled => resolved
2019-08-15 19:04hgbotResolutionopen => fixed
2019-08-15 19:04hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a716bc00fe438ef4affb65c52ada271d3d7319a1 [^]
2019-09-02 09:27marvintmReview Assigned To => marvintm
2019-09-02 09:27marvintmStatusresolved => closed
2019-09-02 09:27marvintmFixed in Version => RR19Q4
2023-05-29 10:30ngarciaIssue cloned0052586
2023-05-29 10:31ngarciaRelationship addedrelated to 0052564
2023-05-29 10:32ngarciaRelationship deletedrelated to 0052564
2023-05-29 10:32ngarciaRelationship addedrelated to 0052586

Notes
(0114024)
hgbot   
2019-08-15 19:04   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: a716bc00fe438ef4affb65c52ada271d3d7319a1
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Tue Aug 13 19:13:51 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a716bc00fe438ef4affb65c52ada271d3d7319a1 [^]

Fixed issue 41596: Change amount is not shown while printing a duplicate of a
ticket in Web POS

- Receipt Change value is comming into changePayment object instead paymentData
object

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