Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-cost
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-cost
Commits
1fd2b585
Commit
1fd2b585
authored
Feb 01, 2024
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.project-open.net/project-open/intranet-cost
Conflicts: tcl/intranet-cost-procs.tcl
parents
03c012fa
5fc0b0ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
intranet-cost-procs.tcl
tcl/intranet-cost-procs.tcl
+15
-8
No files found.
tcl/intranet-cost-procs.tcl
View file @
1fd2b585
...
...
@@ -1311,7 +1311,8 @@ ad_proc im_costs_project_finance_component {
set show_status_p
[
parameter::get_from_package_key -package_key intranet-cost -parameter
"ProjectCostShowStatusP"
-default 1
]
set show_notes_p
[
parameter::get_from_package_key -package_key intranet-cost -parameter
"ProjectCostShowNotesP"
-default 0
]
set show_lines_p
[
parameter::get_from_package_key -package_key intranet-cost -parameter
"ProjectCostShowLinesP"
-default 0
]
set show_budget_p
[
im_column_exists im_costs budget_item_id
]
set show_budget_p
[
parameter::get_from_package_key -package_key intranet-cost -parameter
"ProjectCostShowBudgetP"
-default 0
]
if
{
!
[
im_column_exists im_costs budget_item_id
]}
{
set show_budget_p 0
}
set show_due_date_p
[
parameter::get_from_package_key -package_key intranet-cost -parameter
"ProjectCostShowDueDateP"
-default 0
]
set show_effective_date_p
[
parameter::get_from_package_key -package_key intranet-cost -parameter
"ProjectCostShowEffectiveDateP"
-default 1
]
...
...
@@ -1353,10 +1354,15 @@ ad_proc im_costs_project_finance_component {
set bgcolor
(
0
)
"roweven"
set bgcolor
(
1
)
"rowodd"
set colspan 7
set date_format
"YYYY-MM-DD"
set num_format
"9,999,999,999.99"
set return_url
[
im_url_with_query
]
# Colspan for subtotals: Fixed columns: Document, Cost Center, Company, Amount.
# Subtract 1 for the Amount column to show the subtotal:
#
$show
_subprojects_p: Sub-project,
$show
_budget_p: Budget Item,
$show
_status_p: Status,
#
$show
_effective_date_p: Effective Date,
$show
_due_date_p: Due Date,
$show
_payments_p: Org Amount + Paid
set colspan_subtotal
[
expr
4-1 +
$show
_subprojects_p +
$show
_budget_p +
$show
_status_p +
$show
_effective_date_p +
$show
_due_date_p + 2*$show_payments_p
]
# Round to two digits by default
set rounding_factor 100.0
...
...
@@ -1564,7 +1570,7 @@ ad_proc im_costs_project_finance_component {
set sum
[
im_numeric_add_trailing_zeros
[
expr
round
(
100.0 *
$subtotals
(
$old
_cost_type_id
))
/ 100.0
]
2
]
append cost_html
"
<tr class=rowplain>
<td colspan=
[
expr
$colspan
- 2 +
$show
_status_p +
$show
_subprojects_p
]
> </td>
<td colspan=
$colspan
_subtotal
> </td>
<td align='right' colspan=1>
<b><nobr>
[
lc_numeric
$sum
""
"en_US"
]
$default
_currency</nobr></b>
</td>
...
...
@@ -1642,10 +1648,6 @@ ad_proc im_costs_project_finance_component {
<td><nobr>
$cost
_url
[
string
range
$cost
_name 0 30
]
</A></nobr></td>
<td>
$cost
_center_code</td>
"
if
{
$show
_budget_p
}
{
append cost_html
"<td>
[
acs_object_name
$budget
_item_id
]
</td>"
}
if
{
$show
_subprojects_p
}
{
if
{
$project
_count > 1 ||
(
""
ne
$min
_project_id &&
$project
_id ne
$min
_project_id
)}
{
...
...
@@ -1663,6 +1665,11 @@ ad_proc im_costs_project_finance_component {
append cost_html
"<td><a href=
[
export_vars -base
"/intranet/projects/view"
{
project_id
}]
>
$project
_name</a></td>"
}
}
if
{
$show
_budget_p
}
{
append cost_html
"<td>
[
acs_object_name
$budget
_item_id
]
</td>"
}
append cost_html
"<td>
$company
_name</td>
\n
"
if
{
$show
_status_p
}
{
append cost_html
"<td>
$cost
_status</td>
\n
"
...
...
@@ -1725,7 +1732,7 @@ ad_proc im_costs_project_finance_component {
if
{
!$atleast_one_unreadable_p
}
{
append cost_html
"
<tr class=rowplain>
<td colspan=
[
expr
$colspan
- 2 +
$show
_status_p +
$show
_subprojects_p
]
> </td>
<td colspan=
$colspan
_subtotal
> </td>
<td colspan='1' align=right>
<b><nobr>
[
lc_numeric
$subtotals
(
$old
_cost_type_id
)]
$default
_currency</nobr></b>
</td>
...
...
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