Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-invoices
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-invoices
Commits
661bea8b
Commit
661bea8b
authored
Nov 25, 2004
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added a delete for im_trans_tasks when deleting invoices
parent
b5eb8a08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
invoice-action.tcl
www/invoice-action.tcl
+20
-6
No files found.
www/invoice-action.tcl
View file @
661bea8b
...
...
@@ -55,12 +55,26 @@ switch $submit {
foreach cost_id
$del
_cost
{
set otype
$object
_type
(
$cost
_id
)
# ToDo: Security
db_dml delete_cost_item
"
begin
${otype}
.del(:cost_id);
end;"
lappend in_clause_list
$cost
_id
db_transaction
{
# ToDo: This delete option should go into
# im_trans_invoice.del
(
...
)
#
if
{
[
db_table_exists im_trans_tasks
]
}
{
db_dml delete_trans_tasks
"
update im_trans_tasks
set invoice_id = null
where invoice_id = :cost_id
"
}
# ToDo: Security
db_dml delete_cost_item
"
begin
${otype}
.del(:cost_id);
end;"
lappend in_clause_list
$cost
_id
}
}
set cost_where_list
"(
[
join
$in
_clause_list
","
]
)"
...
...
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