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
ff869cf6
Commit
ff869cf6
authored
Dec 28, 2023
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed colspan of Finance project portlet subtotals (cosine #5732)
parent
caf5c6e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
intranet-cost-procs.tcl
tcl/intranet-cost-procs.tcl
+8
-3
No files found.
tcl/intranet-cost-procs.tcl
View file @
ff869cf6
...
...
@@ -1338,10 +1338,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
...
...
@@ -1549,7 +1554,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
- 3 +
$show
_status_p +
$show
_subprojects_p
]
> </td>
<td colspan=
$colspan
_subtotal
> </td>
<td align='right' colspan=1>
<b><nobr>
[
lc_numeric
$sum
]
$default
_currency</nobr></b>
</td>
...
...
@@ -1710,7 +1715,7 @@ ad_proc im_costs_project_finance_component {
if
{
!$atleast_one_unreadable_p
}
{
append cost_html
"
<tr class=rowplain>
<td colspan=
[
expr
$colspan
- 3 +
$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