]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
DRYD-1176: Add xml payload for incomingloanletter (#332)
authorMichael Ritter <mikejritter@users.noreply.github.com>
Tue, 18 Apr 2023 01:25:00 +0000 (19:25 -0600)
committerGitHub <noreply@github.com>
Tue, 18 Apr 2023 01:25:00 +0000 (21:25 -0400)
services/report/3rdparty/jasper-cs-report/src/main/resources/incoming_loan_letter.jrxml
services/report/3rdparty/jasper-cs-report/src/main/resources/incoming_loan_letter.xml [new file with mode: 0644]

index 19faf622259733fdede90d1ba12fcf7fdd4d39d9..1ff4f5a0f821c6442786d2a196c0b8cb173ede90 100644 (file)
@@ -38,7 +38,7 @@
   from persons_common person
   inner join local_person_authority local_auth on person.inauthority = local_auth.name
   inner join hierarchy hier on hier.id = person.id
-  inner join hierarchy ptg_hier on ptg_hier.parentid = person.id and ptg_hier.primarytype = 'personTermGroup'
+  inner join hierarchy ptg_hier on ptg_hier.parentid = person.id and ptg_hier.primarytype = 'personTermGroup' and ptg_hier.pos = 0
   inner join persontermgroup ptg on ptg.id = ptg_hier.id
   left outer join contacts_common contact on contact.initem = hier.name
   left outer join hierarchy addr_hier on addr_hier.parentid = contact.id and addr_hier.primarytype = 'addressGroup' and addr_hier.pos = 0
@@ -48,7 +48,7 @@
   from organizations_common org
   inner join local_org_authority local_auth on org.inauthority = local_auth.name
   inner join hierarchy hier on hier.id = org.id
-  inner join hierarchy otg_hier on otg_hier.parentid = org.id and otg_hier.primarytype = 'orgTermGroup'
+  inner join hierarchy otg_hier on otg_hier.parentid = org.id and otg_hier.primarytype = 'orgTermGroup' and otg_hier.pos = 0
   inner join orgtermgroup otg on otg.id = otg_hier.id
   left outer join contacts_common contact on contact.initem = hier.name
   left outer join hierarchy addr_hier on addr_hier.parentid = contact.id and addr_hier.primarytype = 'addressGroup' and addr_hier.pos = 0
diff --git a/services/report/3rdparty/jasper-cs-report/src/main/resources/incoming_loan_letter.xml b/services/report/3rdparty/jasper-cs-report/src/main/resources/incoming_loan_letter.xml
new file mode 100644 (file)
index 0000000..fa191a1
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<document name="report">
+  <ns2:reports_common xmlns:ns2="http://collectionspace.org/services/report">
+    <name>Incoming Loan Letter</name>
+    <notes>Incoming Loan Letter</notes>
+    <forDocTypes>
+      <forDocType>Loanin</forDocType>
+    </forDocTypes>
+    <supportsSingleDoc>true</supportsSingleDoc>
+    <supportsDocList>false</supportsDocList>
+    <supportsGroup>false</supportsGroup>
+    <supportsNoContext>true</supportsNoContext>
+    <filename>incoming_loan_letter.jrxml</filename>
+    <outputMIME>application/pdf</outputMIME>
+  </ns2:reports_common>
+</document>