Commit fb1358f0 authored by Quxl's avatar Quxl

x

parent 8fe0707f
......@@ -68,7 +68,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
HEADER_ORGANIZATIONAL_DATA HEADER_ORGANIZATIONAL_DATA = Z_DT_SD_005_PERFORM_INVOICE.getHEADER_ORGANIZATIONAL_DATA();
List<SUMMARY_GENERAL> summaryList = Z_DT_SD_005_PERFORM_INVOICE.getSUMMARY_GENERAL();
List<ITEM_DATA> itemList = Z_DT_SD_005_PERFORM_INVOICE.getITEM_DATA();
Long headerId = common.getNextval("T_PERFORM_INVOICE_HEADER_ID");
Long headerId = Long.valueOf(now.getTime() + "" + StringUtil.format(common.getNextval("T_PERFORM_INVOICE_HEADER_ID"), "00000"));
headMap.put("ID", headerId);
if(HEADER_GENERAL_DATA != null) {
headMap.put("GENERAL_BELNR", HEADER_GENERAL_DATA.getBELNR());
......@@ -119,7 +119,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
if(itemList != null) {
for(ITEM_DATA ITEM_DATA : itemList) {
Map<String, Object> itemDataMap = new HashMap<String, Object>();
Long itemId = Long.valueOf("" + System.currentTimeMillis() + 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();
ITEM_MATERIAL_DATA ITEM_MATERIAL_DATA = ITEM_DATA.getITEM_MATERIAL_DATA();
List<ITEM_AMOUNT_DATA> itemAmountList = ITEM_DATA.getITEM_AMOUNT_DATA();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment