Skip to content

Commit

Permalink
Remove bad validation for document number
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih committed Oct 2, 2019
1 parent b62ba2d commit 62bcc67
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,18 +160,6 @@ public boolean createTXTFile (Writer writer, char delimiter, ReportEngine engine
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"))) {
int intValue = -1;
try {
intValue = Integer.parseInt(data);
} catch (Exception e) {
// None
}
if(intValue != -1) {
data = String.valueOf(intValue);
}
}
}
}
Expand Down

0 comments on commit 62bcc67

Please sign in to comment.