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
ea54dfbb
Commit
ea54dfbb
authored
Aug 17, 2010
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-- implemented rel invoice-item/project-task
parent
68fda5ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
new-4.tcl
www/invoices/new-4.tcl
+5
-3
No files found.
www/invoices/new-4.tcl
View file @
ea54dfbb
...
...
@@ -42,6 +42,7 @@ ad_page_contract {
item_project_id:integer,array
item_rate:float,array
item_currency:array
item_task_id:integer,array
{
include_task:multiple
{}
}
{
return_url
"/intranet-invoices/"
}
}
...
...
@@ -201,7 +202,8 @@ foreach nr $item_list {
set rate
$item
_rate
(
$nr
)
set currency
$item
_currency
(
$nr
)
set sort_order
$item
_sort_order
(
$nr
)
ns_log Notice
"item(
$nr
,
$name
,
$units
,
$uom
_id,
$project
_id,
$rate
,
$currency
)"
set task_id
$item
_task_id
(
$nr
)
ns_log Notice
"item(
$nr
,
$name
,
$units
,
$uom
_id,
$project
_id,
$rate
,
$currency
,
$task
_id)"
# Insert only if it's not an empty line from the edit screen
if
{
!
(
""
==
[
string
trim
$name
]
&&
(
0 ==
$units
||
""
==
$units
))}
{
...
...
@@ -214,7 +216,7 @@ foreach nr $item_list {
price_per_unit, currency,
sort_order, item_type_id,
item_material_id,
item_status_id, description
item_status_id, description
, task_id
) VALUES (
:item_id, :name,
:project_id, :invoice_id,
...
...
@@ -222,7 +224,7 @@ foreach nr $item_list {
:rate, :currency,
:sort_order, :type_id,
:material_id,
null, ''
null, ''
, :task_id
)"
db_dml insert_invoice_items
$insert
_invoice_items_sql
...
...
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