[imp] now switch view when clicking a payment method
bzr revid: nicolas.vanhoren@openerp.com-20111005143056-kc9p4x13cfno2hry
This commit is contained in:
parent
07665ed2fa
commit
321c9a3321
|
@ -575,6 +575,10 @@ openerp.point_of_sale = function(db) {
|
|||
};
|
||||
PaypadView.prototype.performPayment = function(event) {
|
||||
var cashRegister, cashRegisterCollection, cashRegisterId;
|
||||
/* set correct view */
|
||||
$('.step-screen').hide();
|
||||
$('#payment-screen').show();
|
||||
|
||||
cashRegisterId = event.currentTarget.attributes['cash-register-id'].nodeValue;
|
||||
cashRegisterCollection = this.shop.get('cashRegisters');
|
||||
cashRegister = cashRegisterCollection.find(__bind( function(item) {
|
||||
|
|
Loading…
Reference in New Issue