Skip to content

Commit

Permalink
Se corta el numero de factura para el ISLR
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih committed Oct 3, 2019
1 parent 9e58980 commit ba5a6bd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());
}
}
}
}
Expand Down

0 comments on commit ba5a6bd

Please sign in to comment.