Commit 72998005 authored by Quxl's avatar Quxl

x

parent 6e72be6d
......@@ -52,14 +52,14 @@ public class MaterialMasterServiceImpl implements MaterialMasterService {
String dateString = DateUtil.formatDate(now, DateUtil.FMT_DATE);
try {
RECORD RECORD = Z_MT_SD_001_MATERIAL_MASTER.getRECORD();
HEADER_SENDING h = RECORD.getHEADER_SENDING();
HEADER_SENDING HEADER_SENDING = RECORD.getHEADER_SENDING();
String DIS_CODE = null;
String DATUM = null;
String UZEIT = null;
if(h != null) {
DIS_CODE = h.getKUNNR();
DATUM = h.getDATUM();
UZEIT = h.getUZEIT();
if(HEADER_SENDING != null) {
DIS_CODE = HEADER_SENDING.getKUNNR();
DATUM = HEADER_SENDING.getDATUM();
UZEIT = HEADER_SENDING.getUZEIT();
}
List<ITEM> items = RECORD.getITEM();
......
......@@ -16,11 +16,7 @@ public class DateUtil {
public static String formatDate(Date date, String fmt) {
DateFormat df = new SimpleDateFormat(fmt);
return formatDate(date, df);
}
public static String formatDate(Date date, DateFormat fmt) {
return fmt.format(date);
return df.format(date);
}
public static Object parseDate(String dateString, String fmt) {
......
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