Skip to content

Instantly share code, notes, and snippets.

@yk2kus
Last active August 29, 2015 14:22
Show Gist options
  • Save yk2kus/d117c8e7a84333eb744b to your computer and use it in GitHub Desktop.
Save yk2kus/d117c8e7a84333eb744b to your computer and use it in GitHub Desktop.
//Module 1:
function pos_payment_with_decimal(instance, module){ //module is instance.point_of_sale
var QWeb = instance.web.qweb;
var _t = instance.web._t;
module.PaymentScreenWidget = module.PaymentScreenWidget.extend({
events: function(){
return _.extend({},module.PaymentScreenWidget.prototype.events,{
"change .discount-card-select": "selectCard"
});
},
selectCard: function(e){
this.pos_widget.order_widget.update_summary();
this.pos_widget.payment_screen.update_payment_summary();
},
});
} //end of code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment