diff options
| author | Vidhin Mehta <vme@tinyerp.com> | 2013-05-23 18:11:17 +0530 |
|---|---|---|
| committer | Vidhin Mehta <vme@tinyerp.com> | 2013-05-23 18:11:17 +0530 |
| commit | 41fd5d657da5d3d0a6d7e9dda851ec08d1a42d2c (patch) | |
| tree | b6934134e5b37386520c20627cb5a3d468bd77cb /addons | |
| parent | 841accd1793c1e092ebbd02f13a4885e988a4158 (diff) | |
[IMP]Change Variable name.
bzr revid: vme@tinyerp.com-20130523124117-g6hnj394fndmookq
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/hr_timesheet_sheet/static/src/js/timesheet.js | 10 |
1 files 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; |
