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
b2bac0b1
Commit
b2bac0b1
authored
Jun 15, 2021
by
Project Open
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added new procurement financial document types
parent
025aada2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
intranet-cost-common.sql
sql/postgresql/intranet-cost-common.sql
+5
-3
intranet-cost-procs.tcl
tcl/intranet-cost-procs.tcl
+4
-0
No files found.
sql/postgresql/intranet-cost-common.sql
View file @
b2bac0b1
...
...
@@ -69,7 +69,6 @@ SELECT im_category_new (910,'po.es.adp','Intranet Cost Template');
-- Creating category Cost Type
SELECT
im_category_new
(
3700
,
'Customer Invoice'
,
'Intranet Cost Type'
);
SELECT
im_category_new
(
3702
,
'Quote'
,
'Intranet Cost Type'
);
-- SELECT im_category_new (3703,'Order','Intranet Cost Type');
SELECT
im_category_new
(
3704
,
'Provider Bill'
,
'Intranet Cost Type'
);
SELECT
im_category_new
(
3706
,
'Purchase Order'
,
'Intranet Cost Type'
);
SELECT
im_category_new
(
3708
,
'Customer Documents'
,
'Intranet Cost Type'
);
...
...
@@ -85,10 +84,13 @@ SELECT im_category_new (3728,'Expense Planned Cost','Intranet Cost Type');
SELECT
im_category_new
(
3730
,
'InterCo Invoice'
,
'Intranet Cost Type'
);
SELECT
im_category_new
(
3732
,
'InterCo Quote'
,
'Intranet Cost Type'
);
SELECT
im_category_new
(
3734
,
'Provider Receipt'
,
'Intranet Cost Type'
);
-- Fake cost types for timesheet _hours_
SELECT
im_category_new
(
3736
,
'Timesheet Hours'
,
'Intranet Cost Type'
);
SELECT
im_category_new
(
3736
,
'Timesheet Hours'
,
'Intranet Cost Type'
);
-- Fake cost types for timesheet_hours
SELECT
im_category_new
(
3738
,
'Planned Purchase'
,
'Intranet Cost Type'
);
SELECT
im_category_new
(
3740
,
'Customer Purchase Order'
,
'Intranet Cost Type'
);
SELECT
im_category_new
(
3742
,
'Goods Received'
,
'Intranet Cost Type'
);
SELECT
im_category_new
(
3744
,
'Goods Accepted'
,
'Intranet Cost Type'
);
SELECT
im_category_new
(
3744
,
'Purchase Request'
,
'Intranet Cost Type'
);
SELECT
im_category_new
(
3746
,
'Purchase Request'
,
'Intranet Cost Type'
);
-- reserved until 3799
...
...
tcl/intranet-cost-procs.tcl
View file @
b2bac0b1
...
...
@@ -54,6 +54,9 @@ ad_proc -public im_cost_type_provider_receipt {} { return 3734 }
ad_proc -public im_cost_type_timesheet_hours
{}
{
return 3736
}
ad_proc -public im_cost_type_planned_purchase
{}
{
return 3738
}
ad_proc -public im_cost_type_customer_po
{}
{
return 3740
}
ad_proc -public im_cost_type_goods_received
{}
{
return 3742
}
ad_proc -public im_cost_type_goods_accepted
{}
{
return 3744
}
ad_proc -public im_cost_type_purchase_request
{}
{
return 3746
}
ad_proc -public im_cost_type_short_name
{
cost_type_id
}
{
...
...
@@ -176,6 +179,7 @@ ad_proc -public im_cost_permissions {user_id cost_id view_var read_var write_var
where c.cost_id = :cost_id
"
# Return no permissions instead of a hard error in case the cost does not exist
if
{
!
[
info
exists provider_otype
]}
{
ns_log Error
"im_cost_permissions: cost_id=
$cost
_id probably is not a cost item."
set view 0
...
...
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