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
68a41fd3
Commit
68a41fd3
authored
May 07, 2021
by
Project Open
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed issue with dependency not found
parent
6fe1232c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
10 deletions
+33
-10
dependency-tree.tcl
lib/dependency-tree.tcl
+33
-10
No files found.
lib/dependency-tree.tcl
View file @
68a41fd3
...
...
@@ -165,11 +165,22 @@ while {[llength $list] > 0 && $cnt < 10} {
if {
$id
!=
$filter
_invoice_id} {
incr predecessor_num
set url
[
export_vars -base
$invoice
_base_url
{{
invoice_id
$id
}}]
append predecessor_html "
<tr>
<td><a href=$url>$name_hash
(
$id
)
</a></td>
<td>$amount_hash
(
$id
)
</td>
<td>
[
im_category_from_id
$type
_hash
(
$id
)]
</td>
<td>
[
im_category_from_id
$status
_hash
(
$id
)]
</td>
if {
[
info
exists name_hash
(
$id
)]
} {
set name
$name
_hash(
$id
)
set amount
$amount
_hash(
$id
)
set type
[
im_category_from_id
$type
_hash
(
$id
)]
set status
[
im_category_from_id
$status
_hash
(
$id
)]
} else {
set name "
Unknown #$id
"
set amount ""
set type ""
set status ""
}
append predecessor_html "
<tr>
<td><a href=$url>$name</a></td>
<td>$amount</td>
<td>$type</td>
<td>$status</td>
</tr>
\n
"
}
...
...
@@ -206,11 +217,23 @@ while {[llength $list] > 0 && $cnt < 100} {
if {
$id
!=
$filter
_invoice_id} {
incr successor_num
set url
[
export_vars -base
$invoice
_base_url
{{
invoice_id
$id
}}]
append successor_html "
<tr>
<td><a href=$url>$name_hash
(
$id
)
</a></td>
<td>$amount_hash
(
$id
)
</td>
<td>
[
im_category_from_id
$type
_hash
(
$id
)]
</td>
<td>
[
im_category_from_id
$status
_hash
(
$id
)]
</td>
if {
[
info
exists name_hash
(
$id
)]
} {
set name
$name
_hash(
$id
)
set amount
$amount
_hash(
$id
)
set type
[
im_category_from_id
$type
_hash
(
$id
)]
set status
[
im_category_from_id
$status
_hash
(
$id
)]
} else {
set name "
Unknown #$id
"
set amount ""
set type ""
set status ""
}
append successor_html "
<tr>
<td><a href=$url>$name</a></td>
<td>$amount</td>
<td>$type</td>
<td>$status</td>
</tr>
\n
"
}
...
...
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