From 41fd5d657da5d3d0a6d7e9dda851ec08d1a42d2c Mon Sep 17 00:00:00 2001 From: Vidhin Mehta Date: Thu, 23 May 2013 18:11:17 +0530 Subject: [PATCH] [IMP]Change Variable name. bzr revid: vme@tinyerp.com-20130523124117-g6hnj394fndmookq --- addons/hr_timesheet_sheet/static/src/js/timesheet.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/hr_timesheet_sheet/static/src/js/timesheet.js b/addons/hr_timesheet_sheet/static/src/js/timesheet.js index 9a272051655..90ce8eff39b 100644 --- a/addons/hr_timesheet_sheet/static/src/js/timesheet.js +++ b/addons/hr_timesheet_sheet/static/src/js/timesheet.js @@ -165,14 +165,14 @@ openerp.hr_timesheet_sheet = function(instance) { }, is_valid_value:function(value){ var split_value = value.split(":"); - var wrong_value = true; + var valid_value = true; if (split_value.length > 2)return false; _.detect(split_value,function(num){ if(isNaN(num)){ - wrong_value = false; + valid_value = false; } }) - return wrong_value; + return valid_value; }, display_data: function() { var self = this; @@ -264,12 +264,12 @@ openerp.hr_timesheet_sheet = function(instance) { get_super_total: function() { return this.$('.oe_timesheet_weekly_supertotal'); }, - sum_box: function(account, day_count, setter) { + sum_box: function(account, day_count, show_value_in_hour) { var line_total = 0; _.each(account.days[day_count].lines, function(line) { line_total += line.unit_amount; }); - return (setter)?this.format_client(line_total):line_total; + return (show_value_in_hour)?this.format_client(line_total):line_total; }, display_totals: function() { var self = this;