projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d57a09
)
[FIX] point_of_sale: fixed rounding issue for pos order when discount added(maintenan...
author
Ravi Gohil
<rgo@openerp.com>
Fri, 17 Oct 2014 13:30:49 +0000
(19:00 +0530)
committer
Ravi Gohil
<rgo@openerp.com>
Fri, 17 Oct 2014 13:30:49 +0000
(19:00 +0530)
addons/point_of_sale/static/src/js/models.js
patch
|
blob
|
history
diff --git
a/addons/point_of_sale/static/src/js/models.js
b/addons/point_of_sale/static/src/js/models.js
index
b7b36d0
..
606ee1e
100644
(file)
--- a/
addons/point_of_sale/static/src/js/models.js
+++ b/
addons/point_of_sale/static/src/js/models.js
@@
-494,7
+494,7
@@
function openerp_pos_models(instance, module){ //module is instance.point_of_sal
get_all_prices: function(){
var self = this;
var currency_rounding = this.pos.get('currency').rounding;
- var base = round_pr(this.get_quantity() * this.get_unit_price() * (1.0 - (this.get_discount() / 100.0)), currency_rounding);
+ var base = round_pr(round_pr(this.get_quantity() * this.get_unit_price(), currency_rounding) * (1.0 - (this.get_discount() / 100.0)), currency_rounding);
var totalTax = base;
var totalNoTax = base;