Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sencha-reporting-portfolio
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
sencha-reporting-portfolio
Commits
e86150dc
Commit
e86150dc
authored
Oct 26, 2014
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Improved Sales-Pipeline
parent
989be6d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
sales-pipeline.adp
lib/sales-pipeline.adp
+9
-4
sales-pipeline.tcl
lib/sales-pipeline.tcl
+1
-1
No files found.
lib/sales-pipeline.adp
View file @
e86150dc
...
...
@@ -17,6 +17,8 @@ Ext.require([
'PO.store.project.ProjectMainStore'
]);
var projectBaseUrl = "/intranet/projects/view?project_id=";
function launchDiagram(){
// Store of all main projects and project specific fields
var projectMainStore = Ext.StoreManager.get('projectMainStore');
...
...
@@ -63,13 +65,15 @@ function launchDiagram(){
store: chartStore,
renderTo: '@diagram_id@',
axes: [{
type: 'Numeric',
type: 'Numeric',
title: 'Probability (%)',
position: 'left',
fields: ['y_axis'],
grid: true,
minimum: 0
}, {
type: 'Numeric',
title: 'Value (@default_currency@)',
position: 'bottom',
fields: ['x_axis'],
minimum: 0
...
...
@@ -98,9 +102,10 @@ function launchDiagram(){
width: 300,
height: 45,
renderer: function(storeItem, item) {
var title = storeItem.get('caption') + '<br>' +
'@value_l10n@: ' + storeItem.get('x_axis') + ', ' +
'@prob_l10n@:' + storeItem.get('y_axis') + '%';
var title = "<a href=\"" + projectBaseUrl + storeItem.get('project_id') + '\">' +
storeItem.get('caption') + '</a>' + '<br>' +
'@value_l10n@: ' + parseFloat(storeItem.get('x_axis')).toFixed(1) + ', ' +
'@prob_l10n@:' + parseFloat(storeItem.get('y_axis')).toFixed(1) + '%';
this.setTitle(title);
}
}
...
...
lib/sales-pipeline.tcl
View file @
e86150dc
...
...
@@ -19,7 +19,7 @@
# Create a random ID for the diagram
set
diagram_id
"sales_pipeline_
[
expr
round
(
rand
()
* 100000000.0
)]
"
set
currency
[
ad_parameter -package_id
[
im_package_cost_id
]
"DefaultCurrency"
""
"EUR"
]
set
default_
currency
[
ad_parameter -package_id
[
im_package_cost_id
]
"DefaultCurrency"
""
"EUR"
]
set
value_l10n
[
lang::message::lookup
""
intranet-core.Value Value
]
set
prob_l10n
[
lang::message::lookup
""
intranet-core.Probability Probability
]
...
...
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