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
b0f936b4
Commit
b0f936b4
authored
Jul 30, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
83923668
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
14 deletions
+27
-14
PrformaInvoiceServiceImpl.java
...o/services/prforma_invoice/PrformaInvoiceServiceImpl.java
+18
-5
Z_MT_SD_005_PERFORM_INVOICE.java
...services/prforma_invoice/Z_MT_SD_005_PERFORM_INVOICE.java
+9
-9
No files found.
src/main/java/com/egolm/sso/services/prforma_invoice/PrformaInvoiceServiceImpl.java
View file @
b0f936b4
...
@@ -140,7 +140,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
...
@@ -140,7 +140,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
for
(
ITEM_DATA
ITEM_DATA
:
itemList
)
{
for
(
ITEM_DATA
ITEM_DATA
:
itemList
)
{
Map
<
String
,
Object
>
itemDataMap
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
itemDataMap
=
new
HashMap
<
String
,
Object
>();
Long
itemId
=
Long
.
valueOf
(
""
+
now
.
getTime
()
+
StringUtil
.
format
(
common
.
getNextval
(
"T_PERFORM_INVOICE_ITEM_DATE_ID_"
+
dateString
),
"00000"
));
Long
itemId
=
Long
.
valueOf
(
""
+
now
.
getTime
()
+
StringUtil
.
format
(
common
.
getNextval
(
"T_PERFORM_INVOICE_ITEM_DATE_ID_"
+
dateString
),
"00000"
));
ITEM_REFERENCE_DATA
ITEM_REFERENCE_DATA
=
ITEM_DATA
.
getITEM_REFERENCE_DATA
();
List
<
ITEM_REFERENCE_DATA
>
ITEM_REFERENCE_DATA_LIST
=
ITEM_DATA
.
getITEM_REFERENCE_DATA
();
ITEM_MATERIAL_DATA
ITEM_MATERIAL_DATA
=
ITEM_DATA
.
getITEM_MATERIAL_DATA
();
ITEM_MATERIAL_DATA
ITEM_MATERIAL_DATA
=
ITEM_DATA
.
getITEM_MATERIAL_DATA
();
List
<
ITEM_AMOUNT_DATA
>
itemAmountList
=
ITEM_DATA
.
getITEM_AMOUNT_DATA
();
List
<
ITEM_AMOUNT_DATA
>
itemAmountList
=
ITEM_DATA
.
getITEM_AMOUNT_DATA
();
ITEM_VAT_DATA
ITEM_VAT_DATA
=
ITEM_DATA
.
getITEM_VAT_DATA
();
ITEM_VAT_DATA
ITEM_VAT_DATA
=
ITEM_DATA
.
getITEM_VAT_DATA
();
...
@@ -153,10 +153,23 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
...
@@ -153,10 +153,23 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
itemDataMap
.
put
(
"MENEE"
,
ITEM_DATA
.
getMENEE
());
itemDataMap
.
put
(
"MENEE"
,
ITEM_DATA
.
getMENEE
());
itemDataMap
.
put
(
"WERKS"
,
ITEM_DATA
.
getWERKS
());
itemDataMap
.
put
(
"WERKS"
,
ITEM_DATA
.
getWERKS
());
}
}
if
(
ITEM_REFERENCE_DATA
!=
null
)
{
if
(
ITEM_REFERENCE_DATA_LIST
!=
null
)
{
itemDataMap
.
put
(
"REFERENCE_QUALF"
,
ITEM_REFERENCE_DATA
.
getQUALF
());
int
size
=
ITEM_REFERENCE_DATA_LIST
.
size
();
itemDataMap
.
put
(
"REFERENCE_BELNR"
,
ITEM_REFERENCE_DATA
.
getBELNR
());
if
(
size
>
2
)
{
itemDataMap
.
put
(
"REFERENCE_ZEILE"
,
ITEM_REFERENCE_DATA
.
getZEILE
());
throw
new
XRException
(
"List[ITEM_REFERENCE_DATA] size cannot greater than maximum 2"
);
}
for
(
int
i
=
0
;
i
<
size
;
i
++)
{
ITEM_REFERENCE_DATA
ITEM_REFERENCE_DATA
=
ITEM_REFERENCE_DATA_LIST
.
get
(
i
);
if
(
i
==
0
)
{
itemDataMap
.
put
(
"REFERENCE_QUALF"
,
ITEM_REFERENCE_DATA
.
getQUALF
());
itemDataMap
.
put
(
"REFERENCE_BELNR"
,
ITEM_REFERENCE_DATA
.
getBELNR
());
itemDataMap
.
put
(
"REFERENCE_ZEILE"
,
ITEM_REFERENCE_DATA
.
getZEILE
());
}
else
if
(
i
==
1
)
{
itemDataMap
.
put
(
"REFERENCE_QUALF_DN"
,
ITEM_REFERENCE_DATA
.
getQUALF
());
itemDataMap
.
put
(
"REFERENCE_BELNR_DN"
,
ITEM_REFERENCE_DATA
.
getBELNR
());
itemDataMap
.
put
(
"REFERENCE_ZEILE_DN"
,
ITEM_REFERENCE_DATA
.
getZEILE
());
}
}
}
}
if
(
ITEM_MATERIAL_DATA
!=
null
)
{
if
(
ITEM_MATERIAL_DATA
!=
null
)
{
itemDataMap
.
put
(
"MATERIAL_QUALF"
,
ITEM_MATERIAL_DATA
.
getQUALF
());
itemDataMap
.
put
(
"MATERIAL_QUALF"
,
ITEM_MATERIAL_DATA
.
getQUALF
());
...
...
src/main/java/com/egolm/sso/services/prforma_invoice/Z_MT_SD_005_PERFORM_INVOICE.java
View file @
b0f936b4
...
@@ -290,7 +290,7 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
...
@@ -290,7 +290,7 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
static
class
ITEM_DATA
{
public
static
class
ITEM_DATA
{
@XmlElement
(
required
=
false
,
nillable
=
true
)
@XmlElement
(
required
=
false
,
nillable
=
true
)
ITEM_REFERENCE_DATA
ITEM_REFERENCE_DATA
;
List
<
ITEM_REFERENCE_DATA
>
ITEM_REFERENCE_DATA
;
@XmlElement
(
required
=
false
,
nillable
=
true
)
@XmlElement
(
required
=
false
,
nillable
=
true
)
ITEM_MATERIAL_DATA
ITEM_MATERIAL_DATA
;
ITEM_MATERIAL_DATA
ITEM_MATERIAL_DATA
;
@XmlElement
(
required
=
false
,
nillable
=
true
)
@XmlElement
(
required
=
false
,
nillable
=
true
)
...
@@ -308,14 +308,6 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
...
@@ -308,14 +308,6 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
@XmlElement
(
required
=
false
,
nillable
=
true
)
@XmlElement
(
required
=
false
,
nillable
=
true
)
String
WERKS
;
String
WERKS
;
public
ITEM_REFERENCE_DATA
getITEM_REFERENCE_DATA
()
{
return
ITEM_REFERENCE_DATA
;
}
public
void
setITEM_REFERENCE_DATA
(
ITEM_REFERENCE_DATA
iTEM_REFERENCE_DATA
)
{
ITEM_REFERENCE_DATA
=
iTEM_REFERENCE_DATA
;
}
public
ITEM_MATERIAL_DATA
getITEM_MATERIAL_DATA
()
{
public
ITEM_MATERIAL_DATA
getITEM_MATERIAL_DATA
()
{
return
ITEM_MATERIAL_DATA
;
return
ITEM_MATERIAL_DATA
;
}
}
...
@@ -379,6 +371,14 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
...
@@ -379,6 +371,14 @@ public class Z_MT_SD_005_PERFORM_INVOICE {
public
void
setWERKS
(
String
wERKS
)
{
public
void
setWERKS
(
String
wERKS
)
{
WERKS
=
wERKS
;
WERKS
=
wERKS
;
}
}
public
List
<
ITEM_REFERENCE_DATA
>
getITEM_REFERENCE_DATA
()
{
return
ITEM_REFERENCE_DATA
;
}
public
void
setITEM_REFERENCE_DATA
(
List
<
ITEM_REFERENCE_DATA
>
iTEM_REFERENCE_DATA
)
{
ITEM_REFERENCE_DATA
=
iTEM_REFERENCE_DATA
;
}
}
}
@XmlType
(
name
=
"ITEM_REFERENCE_DATA"
)
@XmlType
(
name
=
"ITEM_REFERENCE_DATA"
)
...
...
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