Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
digibib
deichman
Commits
b772af9c
Commit
b772af9c
authored
Jun 28, 2021
by
Torstein Nicolaysen
Browse files
Revert "
DEICH-5641
include returned items in kemnersaker issues"
This reverts commit
2594a65c
.
parent
2a2cc011
Changes
2
Hide whitespace changes
Inline
Side-by-side
koha/Deichman/Patron/Kemnersak.pm
View file @
b772af9c
...
...
@@ -63,13 +63,13 @@ sub GetByPatron {
FROM kemnersaker k
JOIN issues iss USING(issue_id)
WHERE k.borrowernumber = ?
AND k.status IN ('new', 'sent'
, 'returned'
)
AND k.status IN ('new', 'sent')
UNION
SELECT k.issue_id, k.itemnumber, k.timestamp, k.status, iss.date_due, iss.issuedate, iss.returndate
FROM kemnersaker k
JOIN old_issues iss USING(issue_id)
WHERE k.borrowernumber = ?
AND k.status IN ('new', 'sent'
, 'returned'
)
AND k.status IN ('new', 'sent')
) ks
JOIN items it ON (it.itemnumber=ks.itemnumber)
JOIN biblio bib ON (bib.biblionumber=it.biblionumber);
...
...
koha/Koha/Kemnersaker.pm
View file @
b772af9c
...
...
@@ -24,13 +24,13 @@ sub GetActiveCases {
FROM kemnersaker k
JOIN issues iss USING(issue_id)
WHERE k.borrowernumber = ?
AND k.status IN ('new', 'sent'
, 'returned'
)
AND k.status IN ('new', 'sent')
UNION
SELECT k.issue_id, k.itemnumber, k.timestamp, k.status, iss.date_due, iss.issuedate, iss.returndate
FROM kemnersaker k
JOIN old_issues iss USING(issue_id)
WHERE k.borrowernumber = ?
AND k.status IN ('new', 'sent'
, 'returned'
)
AND k.status IN ('new', 'sent')
) ks
JOIN items it ON (it.itemnumber=ks.itemnumber)
JOIN biblio bib ON (bib.biblionumber=it.biblionumber);
...
...
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