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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0038177
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Web POSmajoralways2018-03-20 13:062018-03-22 09:43
ReporterasiermartirenaView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityhighResolutionfixedFixed in VersionRR18Q1.1
StatusclosedFix in branchFixed in SCM revisiond1e8ac9d03b8
ProjectionnoneETAnoneTarget VersionRR18Q1.1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Status
Review Assigned Tomarvintm
OBNetwork customerNo
Support ticket
Regression levelCoding ( Testing )
Regression date2017-10-11
Regression introduced in releaseRR18Q1
Regression introduced by commithttps://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6c903c081a0a [^]
Triggers an Emergency PackNo
Summary

0038177: JS error when trying to pay a ticket with a payment method not in that terminal

DescriptionThere's a javascript error when trying to pay a ticket in a terminal that doesn't contain the payment method of the payment used to pay (partially or totally) the ticket.

In the 'checkValidOverpayment' function there's a line that takes the payment method of the payment, and tries to take that payment method from the terminal. As the payment method is not in the terminal, there's a null pointer. This is the line:

overPaymentMethod = overPaymentUsed ? OB.MobileApp.model.paymentnames[overPaymentUsed.get('kind')].paymentMethod : undefined

This only occurs in a terminal that contains at least one payment method, otherwise this function is not called.
Steps To ReproduceLoad in a terminal with the payment method 'Card'.

Create a ticket and pay partially or totally by 'Card'.

Load the Web POS in a terminal that doesn't contain the 'Card' payment method.

Load the previously created ticket.

Click on the total amount button -----> A javascript error appears
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0038176 closedranjith_qualiantech_com JS error when trying to pay a ticket with a payment method not in that terminal 

-  Notes
(0103409)
hgbot (developer)
2018-03-22 08:40

Repository: retail/backports/3.0RR18Q1.1/org.openbravo.retail.posterminal
Changeset: d1e8ac9d03b845eb7f0ec2b200381c52a0e72d34
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Mar 22 11:35:56 2018 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR18Q1.1/org.openbravo.retail.posterminal/rev/d1e8ac9d03b845eb7f0ec2b200381c52a0e72d34 [^]

Fixed issue 38177 : Validate receipt payment with terminal payment

* If receipt payment is not exists in terminal payments, it should not validate overpayment

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/payment.js
---

- Issue History
Date Modified Username Field Change
2018-03-20 14:01 marvintm Type defect => backport
2018-03-20 14:01 marvintm Target Version => RR18Q1.1
2018-03-21 07:28 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2018-03-22 08:40 hgbot Checkin
2018-03-22 08:40 hgbot Note Added: 0103409
2018-03-22 08:40 hgbot Status scheduled => resolved
2018-03-22 08:40 hgbot Resolution open => fixed
2018-03-22 08:40 hgbot Fixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR18Q1.1/org.openbravo.retail.posterminal/rev/d1e8ac9d03b845eb7f0ec2b200381c52a0e72d34 [^]
2018-03-22 09:43 marvintm Review Assigned To => marvintm
2018-03-22 09:43 marvintm Status resolved => closed
2018-03-22 09:43 marvintm Fixed in Version => RR18Q1.1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker