Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sap-service
Project
Project
Details
Activity
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
曲欣亮
sap-service
Commits
546c4ea1
Commit
546c4ea1
authored
Jul 30, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
b0f936b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
10 deletions
+33
-10
PrformaInvoiceServiceImpl.java
...o/services/prforma_invoice/PrformaInvoiceServiceImpl.java
+27
-0
Z_MT_SD_005_PERFORM_INVOICE.java
...services/prforma_invoice/Z_MT_SD_005_PERFORM_INVOICE.java
+6
-10
No files found.
src/main/java/com/egolm/sso/services/prforma_invoice/PrformaInvoiceServiceImpl.java
View file @
546c4ea1
...
@@ -105,6 +105,33 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
...
@@ -105,6 +105,33 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
headMap
.
put
(
"BANK_ACNUM"
,
HEADER_BANK_DATA
.
getACNUM
());
headMap
.
put
(
"BANK_ACNUM"
,
HEADER_BANK_DATA
.
getACNUM
());
}
}
if
(
HEADER_ORGANIZATIONAL_DATA
!=
null
)
{
if
(
HEADER_ORGANIZATIONAL_DATA
!=
null
)
{
List
<
String
>
QUALF_LIST
=
HEADER_ORGANIZATIONAL_DATA
.
getQUALF
();
List
<
String
>
ORGID_LIST
=
HEADER_ORGANIZATIONAL_DATA
.
getORGID
();
if
(
QUALF_LIST
!=
null
&&
ORGID_LIST
!=
null
&&
QUALF_LIST
.
size
()
==
ORGID_LIST
.
size
())
{
for
(
int
i
=
0
;
i
<
QUALF_LIST
.
size
();
i
++)
{
String
QUALF
=
QUALF_LIST
.
get
(
i
);
String
ORGID
=
ORGID_LIST
.
get
(
i
);
if
(
"008"
.
equals
(
QUALF
))
{
headMap
.
put
(
"ORGANIZATIONAL_QUALF1"
,
QUALF
);
headMap
.
put
(
"ORGANIZATIONAL_ORGID1"
,
ORGID
);
}
else
if
(
"007"
.
equals
(
QUALF
))
{
headMap
.
put
(
"ORGANIZATIONAL_QUALF2"
,
QUALF
);
headMap
.
put
(
"ORGANIZATIONAL_ORGID2"
,
ORGID
);
}
else
if
(
"006"
.
equals
(
QUALF
))
{
headMap
.
put
(
"ORGANIZATIONAL_QUALF3"
,
QUALF
);
headMap
.
put
(
"ORGANIZATIONAL_ORGID3"
,
ORGID
);
}
else
if
(
"015"
.
equals
(
QUALF
))
{
headMap
.
put
(
"ORGANIZATIONAL_QUALF4"
,
QUALF
);
headMap
.
put
(
"ORGANIZATIONAL_ORGID4"
,
ORGID
);
}
else
{
throw
new
XRException
(
"Organizational identity undefined ["
+
QUALF
+
"] in HEADER_ORGANIZATIONAL_DATA"
);
}
}
}
else
{
throw
new
XRException
(
"The number of ORGID and QUALF does not match"
);
}
headMap
.
put
(
"ORGANIZATIONAL_QUALF"
,
HEADER_ORGANIZATIONAL_DATA
.
getQUALF
());
headMap
.
put
(
"ORGANIZATIONAL_QUALF"
,
HEADER_ORGANIZATIONAL_DATA
.
getQUALF
());
headMap
.
put
(
"ORGANIZATIONAL_ORGID"
,
HEADER_ORGANIZATIONAL_DATA
.
getORGID
());
headMap
.
put
(
"ORGANIZATIONAL_ORGID"
,
HEADER_ORGANIZATIONAL_DATA
.
getORGID
());
}
}
...
...
src/main/java/com/egolm/sso/services/prforma_invoice/Z_MT_SD_005_PERFORM_INVOICE.java
View file @
546c4ea1
...
@@ -230,23 +230,19 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
...
@@ -230,23 +230,19 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
static
class
HEADER_ORGANIZATIONAL_DATA
{
public
static
class
HEADER_ORGANIZATIONAL_DATA
{
@XmlElement
(
required
=
false
,
nillable
=
true
)
@XmlElement
(
required
=
false
,
nillable
=
true
)
String
QUALF
;
List
<
String
>
QUALF
;
@XmlElement
(
required
=
false
,
nillable
=
true
)
@XmlElement
(
required
=
false
,
nillable
=
true
)
String
ORGID
;
List
<
String
>
ORGID
;
public
List
<
String
>
getQUALF
()
{
public
String
getQUALF
()
{
return
QUALF
;
return
QUALF
;
}
}
public
void
setQUALF
(
List
<
String
>
qUALF
)
{
public
void
setQUALF
(
String
qUALF
)
{
QUALF
=
qUALF
;
QUALF
=
qUALF
;
}
}
public
List
<
String
>
getORGID
()
{
public
String
getORGID
()
{
return
ORGID
;
return
ORGID
;
}
}
public
void
setORGID
(
List
<
String
>
oRGID
)
{
public
void
setORGID
(
String
oRGID
)
{
ORGID
=
oRGID
;
ORGID
=
oRGID
;
}
}
}
}
...
...
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