});
this.updatePaymentSummary();
- this.$('.paymentline-amout input').last().focus();
},
close: function(){
this._super();
self.deleteLine(r);
});
x.appendTo(this.$('#paymentlines'));
+ this.$('.paymentline-amount input:last').focus();
},
renderElement: function() {
this._super();
if(this.pos_widget.action_bar){
this.pos_widget.action_bar.set_button_disabled('validation', remaining > 0);
}
+ this.$('.paymentline-amount input:last').focus();
},
set_numpad_state: function(numpadState) {
if (this.numpadState) {
this.payment_line.bind('change', this.changedAmount, this);
},
changeAmount: function(event) {
- var newAmount;
- newAmount = event.currentTarget.value;
+ var newAmount = event.currentTarget.value;
if (newAmount && !isNaN(newAmount)) {
this.amount = parseFloat(newAmount);
this.payment_line.set_amount(this.amount);