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
9516e8f5
Commit
9516e8f5
authored
Apr 18, 2024
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed cedis issue with FinDocs not showing up with a NULl cost center
parent
03ee71b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
list.tcl
www/list.tcl
+11
-14
No files found.
www/list.tcl
View file @
9516e8f5
...
...
@@ -344,31 +344,28 @@ from
im_costs ci
LEFT OUTER JOIN im_projects pr on (ci.project_id = pr.project_id),
im_companies c,
im_companies p,
( select distinct
cc.cost_center_id,
ct.cost_type_id
im_companies p
$extra
_from
where
i.invoice_id = ci.cost_id
and ci.customer_id = c.company_id
and ci.provider_id = p.company_id
and (ci.cost_center_id is NULL or ci.cost_center_id in (
select distinct cc.cost_center_id
from im_cost_centers cc,
im_cost_types ct,
acs_permissions p,
party_approved_member_map m,
acs_object_context_index c,
acs_privilege_descendant_map h
where
p.object_id = c.ancestor_id
where p.object_id = c.ancestor_id
and h.descendant = ct.read_privilege
and c.object_id = cc.cost_center_id
and m.member_id = :user_id
and p.privilege = h.privilege
and p.grantee_id = m.party_id
) readable_ccs
$extra
_from
where
i.invoice_id = ci.cost_id
and ci.customer_id = c.company_id
and ci.provider_id = p.company_id
and ci.cost_center_id = readable_ccs.cost_center_id
and ci.cost_type_id = readable_ccs.cost_type_id
and ct.cost_type_id = ci.cost_type_id
))
$company
_where
$where
_clause
$extra
_where
...
...
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