Browse Source

FIX my previous commit: sent currency to POSbox

pull/440/head
Alexis de Lattre 10 years ago
committed by Sylvain LE GAL
parent
commit
219fbc94bd
  1. 2
      pos_payment_terminal/static/src/js/pos_payment_terminal.js

2
pos_payment_terminal/static/src/js/pos_payment_terminal.js

@ -25,7 +25,7 @@ openerp.pos_payment_terminal = function(instance){
var self = this; var self = this;
if (line.cashregister.journal.payment_mode && this.pos.config.iface_payment_terminal){ if (line.cashregister.journal.payment_mode && this.pos.config.iface_payment_terminal){
el_node.querySelector('.payment-terminal-transaction-start') el_node.querySelector('.payment-terminal-transaction-start')
.addEventListener('click', function(){self.pos.proxy.payment_terminal_transaction_start(line, self.pos.currency.name)});
.addEventListener('click', function(){self.pos.proxy.payment_terminal_transaction_start(line, self.pos.config.currency_id[1])});
} }
return el_node; return el_node;
}, },

Loading…
Cancel
Save