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
2aec7c13
Commit
2aec7c13
authored
Aug 09, 2012
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-- get default currency from sys parameters
parent
ef2d3b4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
intranet-cost-procs.tcl
tcl/intranet-cost-procs.tcl
+4
-1
No files found.
tcl/intranet-cost-procs.tcl
View file @
2aec7c13
...
...
@@ -731,6 +731,9 @@ ad_proc im_costs_object_list_component { user_id cost_id return_url } {
ad_proc im_company_payment_balance_component
{
company_id
}
{
Returns a formatted HTML with invoices vs. payments.
}
{
set default_currency
[
parameter::get -package_id
[
apm_package_id_from_key intranet-cost
]
-parameter
"DefaultCurrency"
-default
"EUR"
]
# ------------------------------------------------------------------
# List of Invoices or Bills
...
...
@@ -807,7 +810,7 @@ ad_proc im_company_payment_balance_component { company_id } {
from
(select
c.*,
im_exchange_rate(c.effective_date::date, c.currency,
'EUR'
) as xrate,
im_exchange_rate(c.effective_date::date, c.currency,
:default_currency
) as xrate,
c.paid_currency
from
im_costs c
...
...
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