Merge lp:~openerp-dev/openobject-addons/trunk-bug-1082324-hip into lp:openobject-addons

Proposed by Hiral Patel (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1082324-hip
Merge into: lp:openobject-addons
Diff against target: 19 lines (+3/-3)
1 file modified
hr_timesheet_sheet/static/src/js/timesheet.js (+3/-3)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1082324-hip
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+140147@code.launchpad.net

Description of the change

Hello,

Rounding of total in timesheet lines is not correct.

Thanks.

To post a comment you must log in.

Unmerged revisions

8307. By Hiral Patel (OpenERP)

[MERGE] Merge with lp:openobject-addons

8306. By Hiral Patel (OpenERP)

[FIX][trunk] In Timesheet, the total of timesheet lines is not rounding.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hr_timesheet_sheet/static/src/js/timesheet.js'
2--- hr_timesheet_sheet/static/src/js/timesheet.js 2012-11-22 13:06:56 +0000
3+++ hr_timesheet_sheet/static/src/js/timesheet.js 2012-12-17 09:08:03 +0000
4@@ -266,12 +266,12 @@
5 day_tots[day_count] += sum;
6 super_tot += sum;
7 });
8- self.get_total(account).html(acc_tot);
9+ self.get_total(account).html(Math.round(acc_tot));
10 });
11 _.each(_.range(self.dates.length), function(day_count) {
12- self.get_day_total(day_count).html(day_tots[day_count]);
13+ self.get_day_total(day_count).html(Math.round(day_tots[day_count]));
14 });
15- self.get_super_total().html(super_tot);
16+ self.get_super_total().html(Math.round(super_tot));
17 },
18 sync: function() {
19 var self = this;

Subscribers

People subscribed via source and target branches

to all changes: