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
74b995ac
Commit
74b995ac
authored
Mar 26, 2012
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Cost:
Fixed issue when the cost summary shows rounding issues
parent
f72d2f5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
intranet-cost-procs.tcl
tcl/intranet-cost-procs.tcl
+5
-0
No files found.
tcl/intranet-cost-procs.tcl
View file @
74b995ac
...
...
@@ -1187,6 +1187,9 @@ ad_proc im_costs_project_finance_component {
set num_format
"9999999999.99"
set return_url
[
im_url_with_query
]
# Round to two digits by default
set rounding_factor 100.0
# Locale for rendering
set locale
"en"
...
...
@@ -1465,6 +1468,7 @@ ad_proc im_costs_project_finance_component {
append hard_cost_html
"<td align=right>-
$subtotal
$default
_currency</td>
\n
"
set grand_total
[
expr
$grand
_total -
$subtotal
]
set grand_total
[
expr
round
(
$rounding
_factor *
$grand
_total
)
/
$rounding
_factor
]
append hard_cost_html
"</tr>
\n
<tr>
\n
<td><b>
[
_ intranet-cost.Grand_Total
]
</b></td>
\n
"
append hard_cost_html
"<td align=right><b>
$grand
_total
$default
_currency</b></td>
\n
"
...
...
@@ -1503,6 +1507,7 @@ ad_proc im_costs_project_finance_component {
append prelim_cost_html "
<td align=right>-
$subtotal
$default
_currency</td>
\n
"
set grand_total
[
expr
$grand
_total -
$subtotal
]
set grand_total
[
expr
round
(
$rounding
_factor *
$grand
_total
)
/
$rounding
_factor
]
append prelim_cost_html "
</tr>
\n
<tr>
\n
<td><b>
[
lang::message::lookup
""
intranet-cost.Preliminary_Total
"Preliminary Total"
]
</b></td>
\n
"
append prelim_cost_html "
<td align=right><b>$grand_total
$default
_currency</b></td>
\n
"
append prelim_cost_html "
</tr>
\n
</table>
\n
"
...
...
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