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
5f1a35b4
Commit
5f1a35b4
authored
Nov 30, 2004
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- resetting project state to "delivered" for all projects
affected by deleting the invoice
parent
87b3396d
Pipeline
#310
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
invoice-action.tcl
www/invoice-action.tcl
+15
-1
No files found.
www/invoice-action.tcl
View file @
5f1a35b4
...
...
@@ -61,11 +61,25 @@ switch $submit {
# im_trans_invoice.del
(
...
)
#
if
{
[
db_table_exists im_trans_tasks
]
}
{
db_dml delete_trans_tasks
"
db_dml reset_affected_projects
"
update im_projects
set project_status_id =
[
im_project_status_delivered
]
where project_id in (
select distinct project_id
from im_trans_tasks
where invoice_id=:cost_id
)
"
# Mark the im_trans_tasks as not invoiced by
# deleting their invoice_id field.
db_dml reset_trans_tasks
"
update im_trans_tasks
set invoice_id = null
where invoice_id = :cost_id
"
}
# ToDo: Security
...
...
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