Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-hr
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-hr
Commits
a32d4c12
Commit
a32d4c12
authored
Nov 22, 2004
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- changed rep_cost_id into cost_id for repeating_costs.
parent
5d788f99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
new.tcl
www/new.tcl
+4
-4
No files found.
www/new.tcl
View file @
a32d4c12
...
...
@@ -183,7 +183,7 @@ ad_form -extend -name cost -on_request {
p.party_id = :employee_id
and p.party_id = e.employee_id
and p.party_id = ci.cause_object_id
(
+
)
and ci.cost_id = rc.
rep_
cost_id
(
+
)
and ci.cost_id = rc.cost_id
(
+
)
}
-after_submit
{
...
...
@@ -194,10 +194,10 @@ ad_form -extend -name cost -on_request {
# The join between im_costs and im_repeating_costs is necessary
# in order to elimiate all the non-repeating cost items.
set rep_cost_id
[
db_string rep_costs_exist
"
select rc.
rep_
cost_id
select rc.cost_id
from im_repeating_costs rc,
im_costs ci
where rc.
rep_
cost_id = ci.cost_id
where rc.cost_id = ci.cost_id
and ci.cause_object_id = :employee_id
"
-default 0
]
if
{
!$rep_cost_id
}
{
...
...
@@ -205,7 +205,7 @@ ad_form -extend -name cost -on_request {
set rep_cost_id
[
im_cost::new -cost_name
$cost
_name -cost_type_id
[
im_cost_type_repeating
]]
db_dml insert_repeating_costs
"
insert into im_repeating_costs (
rep_
cost_id,
cost_id,
start_date,
end_date
) values (
...
...
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