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

View Revisions: Issue #38176 All Revisions ] Back to Issue ]
Summary 0038176: JS error when trying to pay a ticket with a payment method not in that terminal
Revision 2018-03-20 13:13 by asiermartirena
Description There'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.
Revision 2018-03-20 13:07 by asiermartirena
Description There's a javascript error when trying to pay a ticket in a terminal that doesn't contain a payment method of a payment method 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.


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker