|
@ -1,15 +1,12 @@ |
|
|
odoo.define('pos_barcode_tare.screens', function (require) { |
|
|
odoo.define('pos_barcode_tare.screens', function (require) { |
|
|
|
|
|
|
|
|
"use strict"; |
|
|
"use strict"; |
|
|
var chrome = require('point_of_sale.chrome'); |
|
|
|
|
|
var core = require('web.core'); |
|
|
var core = require('web.core'); |
|
|
var devices = require('point_of_sale.devices'); |
|
|
|
|
|
var gui = require('point_of_sale.gui'); |
|
|
var gui = require('point_of_sale.gui'); |
|
|
var models = require('point_of_sale.models'); |
|
|
var models = require('point_of_sale.models'); |
|
|
var screens = require('point_of_sale.screens'); |
|
|
var screens = require('point_of_sale.screens'); |
|
|
var utils = require('web.utils'); |
|
|
var utils = require('web.utils'); |
|
|
var formats = require('web.formats'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var field_utils = require('web.field_utils'); |
|
|
var QWeb = core.qweb; |
|
|
var QWeb = core.qweb; |
|
|
var _t = core._t; |
|
|
var _t = core._t; |
|
|
var round_pr = utils.round_precision; |
|
|
var round_pr = utils.round_precision; |
|
@ -299,7 +296,7 @@ odoo.define('pos_barcode_tare.screens', function (require) { |
|
|
if (unit.rounding) { |
|
|
if (unit.rounding) { |
|
|
var q = round_pr(qty, unit.rounding); |
|
|
var q = round_pr(qty, unit.rounding); |
|
|
var decimals = self.pos.dp['Product Unit of Measure']; |
|
|
var decimals = self.pos.dp['Product Unit of Measure']; |
|
|
return formats.format_value( |
|
|
|
|
|
|
|
|
return field_utils.format.float( |
|
|
round_di(q, decimals), |
|
|
round_di(q, decimals), |
|
|
{type: 'float', digits: [69, decimals]}); |
|
|
{type: 'float', digits: [69, decimals]}); |
|
|
} |
|
|
} |
|
|