Skip to content

[9.0][IMP] pos_payment_terminal_server: take into account changes in …#4

Open
rousseldenis wants to merge 4 commits into9.0-add_pos_payment_terminal_server-drofrom
9.0-imp-pos_payment_terminal-server-dro
Open

[9.0][IMP] pos_payment_terminal_server: take into account changes in …#4
rousseldenis wants to merge 4 commits into9.0-add_pos_payment_terminal_server-drofrom
9.0-imp-pos_payment_terminal-server-dro

Conversation

@rousseldenis
Copy link
Copy Markdown
Member

@codecov-io
Copy link
Copy Markdown

codecov-io commented Nov 4, 2019

Codecov Report

Merging #4 into 9.0-add_pos_payment_terminal_server-dro will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@                           Coverage Diff                            @@
##           9.0-add_pos_payment_terminal_server-dro       #4   +/-   ##
========================================================================
  Coverage                                    56.38%   56.38%           
========================================================================
  Files                                           21       21           
  Lines                                          282      282           
========================================================================
  Hits                                           159      159           
  Misses                                         123      123

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3fee71b...3f9a542. Read the comment docs.

@rousseldenis rousseldenis force-pushed the 9.0-imp-pos_payment_terminal-server-dro branch from d4cedfa to bd745ef Compare November 8, 2019 13:52
@rousseldenis rousseldenis force-pushed the 9.0-imp-pos_payment_terminal-server-dro branch from bd745ef to 03376d6 Compare November 8, 2019 13:56
Comment on lines +45 to +47
var res = _paymentlineproto.is_payment_terminal_driven.apply(this, arguments);
res = self.cashregister.journal.payment_mode && self.pos.config.use_payment_terminal_server;
return res;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just return self.cashregister.journal.payment_mode && self.pos.config.use_payment_terminal_server;

this._super.apply(this, arguments);
if (this.pos.config.iface_payment_terminal_server){
var self = this;
this.$('.paymentlines-container').unbind('click').on('click', '.payment-terminal-transaction-start', function(event){
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you forget to call "start_transaction"? If not then clean this method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants