Commit 8368a263 authored by Quxl's avatar Quxl

x

parent 20416fb5
...@@ -76,6 +76,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService { ...@@ -76,6 +76,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
} }
if(partnerList != null) { if(partnerList != null) {
for(HEADER_PARTNER_DATA HEADER_PARTNER_DATA : partnerList) { for(HEADER_PARTNER_DATA HEADER_PARTNER_DATA : partnerList) {
if(HEADER_PARTNER_DATA != null) {
String PARVW = HEADER_PARTNER_DATA.getPARVW(); String PARVW = HEADER_PARTNER_DATA.getPARVW();
if("AG".equals(PARVW)) { if("AG".equals(PARVW)) {
headMap.put("PARTNER_PARVW1", HEADER_PARTNER_DATA.getPARVW()); headMap.put("PARTNER_PARVW1", HEADER_PARTNER_DATA.getPARVW());
...@@ -88,6 +89,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService { ...@@ -88,6 +89,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
} }
} }
} }
}
if(HEADER_DOCU_DATE != null) { if(HEADER_DOCU_DATE != null) {
headMap.put("DOCU_IDDAT", HEADER_DOCU_DATE.getIDDAT()); headMap.put("DOCU_IDDAT", HEADER_DOCU_DATE.getIDDAT());
headMap.put("DOCU_DATUM", HEADER_DOCU_DATE.getDATUM()); headMap.put("DOCU_DATUM", HEADER_DOCU_DATE.getDATUM());
...@@ -107,6 +109,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService { ...@@ -107,6 +109,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
if(summaryList != null) { if(summaryList != null) {
for(int i = 0; i < summaryList.size(); i++) { for(int i = 0; i < summaryList.size(); i++) {
SUMMARY_GENERAL SUMMARY_GENERAL = summaryList.get(i); SUMMARY_GENERAL SUMMARY_GENERAL = summaryList.get(i);
if(SUMMARY_GENERAL != null) {
String SUMID = SUMMARY_GENERAL.getSUMID(); String SUMID = SUMMARY_GENERAL.getSUMID();
if("005".equals(SUMID)) { if("005".equals(SUMID)) {
headMap.put("SUMMARY_SUMID1", SUMMARY_GENERAL.getSUMID()); headMap.put("SUMMARY_SUMID1", SUMMARY_GENERAL.getSUMID());
...@@ -119,7 +122,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService { ...@@ -119,7 +122,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
} else { } else {
throw new XRException("Amount type undefined [" + SUMID + "] in SUMMARY_GENERAL"); throw new XRException("Amount type undefined [" + SUMID + "] in SUMMARY_GENERAL");
} }
}
} }
} }
headMap.put("BATCH", dateString + "-" + common.getNextval("T_PERFORM_INVOICE_HEADER_BATCH_" + dateString)); headMap.put("BATCH", dateString + "-" + common.getNextval("T_PERFORM_INVOICE_HEADER_BATCH_" + dateString));
...@@ -158,6 +161,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService { ...@@ -158,6 +161,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
if(itemAmountList != null) { if(itemAmountList != null) {
for(int i = 0; i < itemAmountList.size(); i++) { for(int i = 0; i < itemAmountList.size(); i++) {
ITEM_AMOUNT_DATA ITEM_AMOUNT_DATA = itemAmountList.get(i); ITEM_AMOUNT_DATA ITEM_AMOUNT_DATA = itemAmountList.get(i);
if(ITEM_AMOUNT_DATA != null) {
String QUALF = ITEM_AMOUNT_DATA.getQUALF(); String QUALF = ITEM_AMOUNT_DATA.getQUALF();
if("001".equals(QUALF)) { if("001".equals(QUALF)) {
itemDataMap.put("AMOUNT_QUALF1", ITEM_AMOUNT_DATA.getQUALF()); itemDataMap.put("AMOUNT_QUALF1", ITEM_AMOUNT_DATA.getQUALF());
...@@ -168,7 +172,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService { ...@@ -168,7 +172,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
} else { } else {
throw new XRException("Amount type undefined [" + QUALF + "] in ITEM_AMOUNT_LIST"); throw new XRException("Amount type undefined [" + QUALF + "] in ITEM_AMOUNT_LIST");
} }
}
} }
} }
if(ITEM_VAT_DATA != null) { if(ITEM_VAT_DATA != null) {
...@@ -178,6 +182,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService { ...@@ -178,6 +182,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
if(poTypeList != null) { if(poTypeList != null) {
for(int i = 0; i < poTypeList.size(); i++) { for(int i = 0; i < poTypeList.size(); i++) {
ITEM_REFERENCE_PO_TYPE ITEM_REFERENCE_PO_TYPE = poTypeList.get(i); ITEM_REFERENCE_PO_TYPE ITEM_REFERENCE_PO_TYPE = poTypeList.get(i);
if(ITEM_REFERENCE_PO_TYPE != null) {
String TDID = ITEM_REFERENCE_PO_TYPE.getTDID(); String TDID = ITEM_REFERENCE_PO_TYPE.getTDID();
if("ZXI1".equals(TDID)) { if("ZXI1".equals(TDID)) {
itemDataMap.put("REFERENCE_PO_TYPE_TDID1", ITEM_REFERENCE_PO_TYPE.getTDID()); itemDataMap.put("REFERENCE_PO_TYPE_TDID1", ITEM_REFERENCE_PO_TYPE.getTDID());
...@@ -190,6 +195,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService { ...@@ -190,6 +195,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
} }
} }
} }
}
itemDataMap.put("CREATED", now); itemDataMap.put("CREATED", now);
itemDataMap.put("CREATEBY", "system"); itemDataMap.put("CREATEBY", "system");
itemDatas.add(itemDataMap); itemDatas.add(itemDataMap);
......
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