|
@ -71,6 +71,8 @@ odoo.define('vracoop_balance_ticketing.screens', function (require) { |
|
|
var num_ean13 = this.pos.config.prefix + transaction.ean13.slice(2) |
|
|
var num_ean13 = this.pos.config.prefix + transaction.ean13.slice(2) |
|
|
var width_pix = (Math.round(this.pos.config.page_width * 3.78)).toString() + "px"; |
|
|
var width_pix = (Math.round(this.pos.config.page_width * 3.78)).toString() + "px"; |
|
|
|
|
|
|
|
|
|
|
|
var url_barcode = "/report/barcode/?type=EAN13&value=" + num_ean13 + "&width=600&height=150" |
|
|
|
|
|
|
|
|
return { |
|
|
return { |
|
|
widget: this, |
|
|
widget: this, |
|
|
pos: this.pos, |
|
|
pos: this.pos, |
|
@ -78,6 +80,7 @@ odoo.define('vracoop_balance_ticketing.screens', function (require) { |
|
|
transaction: transaction, |
|
|
transaction: transaction, |
|
|
num_ean13: num_ean13, |
|
|
num_ean13: num_ean13, |
|
|
width: width_pix, |
|
|
width: width_pix, |
|
|
|
|
|
url_barcode: url_barcode, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
print_web: function() { |
|
|
print_web: function() { |
|
|