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
03c012fa
Commit
03c012fa
authored
Feb 01, 2024
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added InterCo financial document types
parent
66782aec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
intranet-cost-common.sql
sql/postgresql/intranet-cost-common.sql
+2
-0
intranet-cost-procs.tcl
tcl/intranet-cost-procs.tcl
+16
-3
No files found.
sql/postgresql/intranet-cost-common.sql
View file @
03c012fa
...
...
@@ -96,6 +96,8 @@ SELECT im_category_new (3746,'Purchase Request','Intranet Cost Type');
-- SELECT im_category_new (3748,'Purchase Etc','Intranet Cost Type');
-- 3750 reserved for cosine "mission
SELECT
im_category_new
(
3752
,
'Cancellation Invoice'
,
'Intranet Cost Type'
);
SELECT
im_category_new
(
3760
,
'InterCo Bill'
,
'Intranet Cost Type'
);
SELECT
im_category_new
(
3762
,
'InterCo Purchase Order'
,
'Intranet Cost Type'
);
-- reserved until 3799
...
...
tcl/intranet-cost-procs.tcl
View file @
03c012fa
# /packages/intranet-
invoices
/tcl/intranet-cost-procs.tcl
# /packages/intranet-
cost
/tcl/intranet-cost-procs.tcl
#
# Copyright (C
)
2003 - 2009
]
project-open
[
#
...
...
@@ -68,6 +68,9 @@ ad_proc -public im_cost_type_purchase_request {} { return 3746 }
ad_proc -public im_cost_type_purchase_etc
{}
{
return 3748
}
# 3750 reserved for cosine "mission"
ad_proc -public im_cost_type_cancellation_invoice
{}
{
return 3752
}
# 3754, 3756, 3758 still free
ad_proc -public im_cost_type_interco_bill
{}
{
return 3760
}
ad_proc -public im_cost_type_interco_purchase_order
{}
{
return 3762
}
ad_proc -public im_cost_type_short_name
{
cost_type_id
}
{
...
...
@@ -89,7 +92,16 @@ ad_proc -public im_cost_type_short_name { cost_type_id } {
3728
{
return
"expense_planned"
}
3730
{
return
"interco_invoice"
}
3732
{
return
"interco_quote"
}
3734
{
return
"provider_receipt"
}
3738
{
return
"planned_purchase"
}
3740
{
return
"customer_po"
}
3742
{
return
"goods_received"
}
3744
{
return
"goods_accepted"
}
3746
{
return
"purchase_request"
}
3748
{
return
"purchase_etc"
}
3752
{
return
"cancellation_invoice"
}
3760
{
return
"interco_bill"
}
3762
{
return
"interco_purchase_order"
}
default
{
return
"unknown"
}
}
}
...
...
@@ -148,6 +160,7 @@ ad_proc -public im_cost_type_is_invoice_or_bill_p { cost_type_id } {
set invoice_or_bill_p
[
expr
\
[
im_category_is_a
$cost
_type_id
[
im_cost_type_invoice
]]
||
\
[
im_category_is_a
$cost
_type_id
[
im_cost_type_bill
]]
\
[
im_category_is_a
$cost
_type_id
[
im_cost_type_interco_bill
]]
\
]
return
$invoice
_or_bill_p
}
...
...
@@ -1551,7 +1564,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=
[
expr
$colspan
-
2
+
$show
_status_p +
$show
_subprojects_p
]
> </td>
<td align='right' colspan=1>
<b><nobr>
[
lc_numeric
$sum
""
"en_US"
]
$default
_currency</nobr></b>
</td>
...
...
@@ -1712,7 +1725,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=
[
expr
$colspan
-
2
+
$show
_status_p +
$show
_subprojects_p
]
> </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