Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2-weekly
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-timesheet2-weekly
Commits
6b83be28
Commit
6b83be28
authored
Apr 01, 2021
by
Project Open
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- WIP
parent
007c22fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
index.adp
www/index.adp
+19
-3
No files found.
www/index.adp
View file @
6b83be28
...
...
@@ -166,7 +166,22 @@ function launchTimesheetWeeklyLogging(){
if ("number" == typeof(hoursFloat)) return Math.round(700.0 * hoursFloat) / 100.0;
return "";
},
summaryType: sumType, summaryRenderer: sumRenderer
summaryType: function(hourArray, dataIndex) {
var sum = 0;
for (var i = 0; i < hourArray.length; i++) {
var vString = hourArray[i].get("hours");
var vFloat = parseFloat(vString);
if (!!vFloat) sum = sum + vFloat;
}
return sum;
},
summaryRenderer: function(value, summaryData, dataIndex) {
var type = typeof(value);
if ("number" == type) {
return Math.round(7.0 * value * 100) / 100;
}
return value;
}
}
// { text: "Note", flex: 1, dataIndex: 'note', editor: { allowBlank: true }}
]
...
...
@@ -210,7 +225,8 @@ function launchTimesheetWeeklyLogging(){
name: 'from_date',
value: new Date(),
maxValue: new Date(),
format: "Y-W"
format: "Y-W",
startDay: 1
}
]
});
...
...
@@ -585,7 +601,7 @@ Ext.onReady(function() {
});
// Load stores that need parameters
hourStore.getProxy().extraParams = { query: "user_id = @current_user_id@ and day > '2021-03-10'", format: 'json' };
hourStore.getProxy().extraParams = { query: "user_id = @current_user_id@ and day > '2021-03-10'", format: 'json'
, deref_p: 1
};
hourStore.load({
callback: function() {
console.log('PO.store.timesheet.HourStore: loaded');
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment