Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2-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-timesheet2-invoices
Commits
41c25e55
Commit
41c25e55
authored
Sep 21, 2021
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added ad_script_abort
parent
1ed95c09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
new.tcl
www/invoices/new.tcl
+2
-3
No files found.
www/invoices/new.tcl
View file @
41c25e55
...
...
@@ -84,12 +84,12 @@ set page_title "[_ intranet-timesheet2-invoices.Invoices]"
set
context_bar
[
im_context_bar
$page
_title
]
set
page_focus
"im_header_form.keywords"
set
default_currency
[
im_parameter -package_id
[
im_package_cost_id
]
"DefaultCurrency"
""
"EUR"
]
set
filter_company_id
$company
_id
if
{
!
[
im_permission
$user
_id add_invoices
]}
{
ad_return_complaint
"
[
_ intranet-timesheet2-invoices.lt_Insufficient_Privileg
]
"
"
<li>
[
_ intranet-timesheet2-invoices.lt_You_dont_have_suffici
]
"
ad_script_abort
}
set
allowed_cost_type
[
im_cost_type_write_permissions
$current
_user_id
]
...
...
@@ -118,8 +118,7 @@ if { $project_id ne "" && $project_id != 0 } {
set invoice_currency
$default
_currency
ad_returnredirect
"/intranet-timesheet2-invoices/invoices/new-2?select_project=
$project
_id&
[
export_vars
{
target_cost_type_id invoice_currency
}]
"
set page_body
""
return
ad_script_abort
}
...
...
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