Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-reporting-dashboard
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-reporting-dashboard
Commits
d7e36b4d
Commit
d7e36b4d
authored
Oct 24, 2019
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added "last 4 years" option to Top Customers
parent
78d7b656
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
top-customers.adp
lib/top-customers.adp
+1
-0
top-customers.json.tcl
www/top-customers.json.tcl
+1
-0
No files found.
lib/top-customers.adp
View file @
d7e36b4d
...
...
@@ -22,6 +22,7 @@ Ext.onReady(function () {
fields: ['display', 'value'],
data : [
{"display":"<%=[lang::message::lookup "" intranet-reporting-dashboard.All_Time "All time"]%>", "value":"all_time"},
{"display":"<%=[lang::message::lookup "" intranet-reporting-dashboard.Last_Four_Years "Last Four Years"]%>", "value":"last_four_years"},
{"display":"<%=[lang::message::lookup "" intranet-reporting-dashboard.Last_Year "Last Year"]%>", "value":"last_year"},
{"display":"<%=[lang::message::lookup "" intranet-reporting-dashboard.Last_Quarter "Last Quarter"]%>", "value":"last_quarter"}
]
...
...
www/top-customers.json.tcl
View file @
d7e36b4d
...
...
@@ -34,6 +34,7 @@ set default_currency [im_parameter -package_id [im_package_cost_id] "DefaultCurr
switch
$diagram
_interval
{
last_year
{
set top_customer_interval_sql
"and c.effective_date >= now()::date - 365"
}
last_four_years
{
set top_customer_interval_sql
"and c.effective_date >= now()::date - 365 * 4"
}
last_quarter
{
set top_customer_interval_sql
"and c.effective_date >= now()::date - 90"
}
last_month
{
set top_customer_interval_sql
"and c.effective_date >= now()::date - 30"
}
all_time
{
set top_customer_interval_sql
""
}
...
...
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