[fix] small problem with payment button

bzr revid: nicolas.vanhoren@openerp.com-20111222134350-utrh2qqexeh103bh
This commit is contained in:
niv-openerp 2011-12-22 14:43:50 +01:00
parent 13e46ecebf
commit fe56720ee9
1 changed files with 2 additions and 0 deletions

View File

@ -615,6 +615,8 @@ openerp.point_of_sale = function(db) {
this.$element.find('button').click(_.bind(this.performPayment, this));
},
performPayment: function(event) {
if (this.shop.get('selectedOrder').get('step') === 'receipt')
return;
var cashRegister, cashRegisterCollection, cashRegisterId;
/* set correct view */
this.shop.get('selectedOrder').set({'step': 'payment'});