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
151c68a6
Commit
151c68a6
authored
Nov 20, 2015
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed ns_log NOTICE
parent
ca602264
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
company-profit-loss.tcl
lib/company-profit-loss.tcl
+2
-2
No files found.
lib/company-profit-loss.tcl
View file @
151c68a6
...
...
@@ -49,7 +49,7 @@ foreach project_id [array names project_hash] {
if
{[
catch
{
set est_profit
[
expr
$costs
(
$project
_id-3702
)
-
$costs
(
$project
_id-3706
)
-
$costs
(
$project
_id-3726
)
-
$costs
(
$project
_id-3728
)]
}
err_msg
]}
{
ns_log E
RROR
"
$err
_msg"
ns_log E
rror
"
$err
_msg"
set est_profit
[
lang::message::lookup
""
intranet-cost.UnableToCalculateEstimatedProfit
"Unable to calculate 'Estimated Profit'"
]
}
...
...
@@ -57,7 +57,7 @@ foreach project_id [array names project_hash] {
set profit
[
expr
$costs
(
$project
_id-3700
)
-
$costs
(
$project
_id-3704
)
-
$costs
(
$project
_id-3718
)
-
$costs
(
$project
_id-3722
)]
set profit_pretty
[
lc_numeric
$profit
"%.2f"
[
lang::user::locale
]]
}
err_msg
]}
{
ns_log E
RROR
"
$err
_msg"
ns_log E
rror
"
$err
_msg"
set profit_pretty
[
lang::message::lookup
""
intranet-cost.UnableToCalculateProfit
"Unable to calculate 'Profit'"
]
}
...
...
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