Skip to content

Commit

Permalink
Se reemplazan los guiones para numeros de control
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih committed Oct 2, 2019
1 parent 62bcc67 commit f5bbc5e
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public boolean exportToFile(File file) {
return createXML(convertFile(file));
}


/**
* Write XML to writer
* @param writer writer
Expand Down Expand Up @@ -207,9 +208,15 @@ public Document getDocument() {
} else {
data = pde.getValueDisplay(getLanguage()); // formatted
// Only for ISLR
if(!Util.isEmpty(data)
&& DisplayType.isNumeric(pde.getDisplayType())) {
data = data.replaceAll(",", ".");
if(!Util.isEmpty(data)) {
if(DisplayType.isNumeric(pde.getDisplayType())) {
data = data.replaceAll(",", ".");
} else if(DisplayType.isText(pde.getDisplayType())
&& (item.getColumnName().equals("InvoiceNo")
|| item.getColumnName().equals("AffectedDocumentNo")
|| item.getColumnName().equals("ControlNo"))) {
data = data.replaceAll("-", "");
}
}
}
} else {
Expand Down

0 comments on commit f5bbc5e

Please sign in to comment.