diff --git a/withholding/src/main/java/org/erpya/lve/util/exp/ExportFormatXML_ISLR.java b/withholding/src/main/java/org/erpya/lve/util/exp/ExportFormatXML_ISLR.java index 7e2a3b3..9c0d7ba 100644 --- a/withholding/src/main/java/org/erpya/lve/util/exp/ExportFormatXML_ISLR.java +++ b/withholding/src/main/java/org/erpya/lve/util/exp/ExportFormatXML_ISLR.java @@ -114,7 +114,6 @@ public Document getDocument() { // System.out.println(factory.getClass().getName()); DocumentBuilder builder = factory.newDocumentBuilder(); document = builder.newDocument(); - document.appendChild(document.createComment(Adempiere.getSummaryAscii())); } catch (Exception e) { log.severe("Error exporting XML " + e.getLocalizedMessage()); return null; @@ -216,6 +215,10 @@ public Document getDocument() { || item.getColumnName().equals("AffectedDocumentNo") || item.getColumnName().equals("ControlNo"))) { data = data.replaceAll("-", ""); + // Change data length + if(data.length() > 10) { + data = data.substring(data.length() - 10, data.length()); + } } } }