Commit c9304f77 authored by Quxl's avatar Quxl

x

parent 65a35955
......@@ -92,7 +92,7 @@ public class ConfirmQuotationServiceImpl implements ConfirmQuotationService {
if(KUNNR == null || KUNNR.trim().isEmpty()) {
throw new XRException("Unable to generate batch number, Distributor number cannot be empty");
throw new XRException("Unable to generate batch number, [KUNNR] cannot be empty");
}
header.put("BATCH", dateString + "-" + common.getNextval("T_SO_CONFIRMACTION_HEADER_BATCH_" + KUNNR));
header.put("CREATED", now);
......
......@@ -59,7 +59,7 @@ public class DNDeletionServiceImpl implements DNDeletionService {
map.put("SOLD_TO", SOLD_TO);
if(SOLD_TO == null || SOLD_TO.trim().isEmpty()) {
throw new XRException("Unable to generate batch number, Distributor number cannot be empty");
throw new XRException("Unable to generate batch number, [SOLD_TO] cannot be empty");
}
map.put("BATCH", dateString + "-" + common.getNextval("T_SO_DN_DELETION_BATCH_" + SOLD_TO));
map.put("TRACE_NO", "sapsodndeletion" + DateUtil.formatDate(now, DateUtil.FMT_DATETIME));
......
......@@ -63,6 +63,9 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
}
List<ITEM> items = RECORD.getITEM();
if(DIS_CODE == null || DIS_CODE.trim().isEmpty()) {
throw new XRException("Unable to generate batch number, [KUNNR] cannot be empty");
}
Long BATCHID = common.getNextval(dateString + "T_VEN_GOODS_BATCH_" + DIS_CODE);
String BATCH = dateString+"-"+BATCHID;
......@@ -106,9 +109,6 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
goods.put("MEABM_B", item.getMEABM_B());
goods.put("PUBLIC", item.getPUBLIC());
goods.put("INTERNET", item.getINTERNET());
if(DIS_CODE == null || DIS_CODE.trim().isEmpty()) {
throw new XRException("Unable to generate batch number, Distributor number cannot be empty");
}
goods.put("TRACE_NO", "sapmaterialmaster" + DateUtil.formatDate(now, DateUtil.FMT_DATETIME));
goods.put("BATCH", BATCH);
goods.put("SEND_STATUS", "N");
......
......@@ -150,7 +150,7 @@ public class PrformaInvoiceServiceImpl implements PrformaInvoiceService {
}
}
if(BATCH_CODE == null || BATCH_CODE.trim().isEmpty()) {
throw new XRException("Unable to generate batch number, Distributor number cannot be empty");
throw new XRException("Unable to generate batch number, [PARTN] cannot be empty");
}
headMap.put("BATCH", dateString + "-" + common.getNextval("T_PERFORM_INVOICE_HEADER_BATCH_" + BATCH_CODE));
headMap.put("TRACE_NO", "sapproformainvoice" + DateUtil.formatDate(now, DateUtil.FMT_DATETIME));
......
......@@ -65,7 +65,7 @@ public class PriceListServiceImpl implements PriceListService {
UZEIT = h.getUZEIT();
}
if(KUNNR == null || KUNNR.trim().isEmpty()) {
throw new XRException("Unable to generate batch number, Distributor number cannot be empty");
throw new XRException("Unable to generate batch number, [KUNNR] cannot be empty");
}
String BATCH = dateString + "-" + common.getNextval("T_PRICE_LIST_BATCH_" + KUNNR);
if(items != null) {
......
......@@ -109,7 +109,7 @@ public class ShippingNotificationServiceImpl implements ShippingNotificationServ
header.put("NTEND", HEADER_DATE.getNTEND());
}
if(BATCH_CODE == null || BATCH_CODE.trim().isEmpty()) {
throw new XRException("Unable to generate batch number, Distributor number cannot be empty");
throw new XRException("Unable to generate batch number, [PARTNER_ID] cannot be empty");
}
header.put("BATCH", dateString + "-" + common.getNextval("T_SHIPPING_NOTIFICATION_HEADER_BATCH_" + BATCH_CODE));
header.put("SEND_STATUS", "N");
......
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