swt-exporter DF11Exporter result OK убрал возможный !

This commit is contained in:
AKurakin 2023-08-23 10:26:23 +03:00
parent 7e0eda6fe3
commit 82e2b08df1

View file

@ -57,7 +57,11 @@ public class DF11Exporter extends AbstractExporterService<SDf11> {
stringBuilder.append(record.getQuantity()).append(':');
stringBuilder.append(record.getSecurityCode()).append(':');
stringBuilder.append(record.getClientName()).append(':');
stringBuilder.append(record.getResult()).append(SWTHeaderData.LINE_SEPARATOR);
String result = record.getResult();
if (result != null && result.endsWith("!")) { // OK! => OK
result = result.substring(0, result.length() - 1);
}
stringBuilder.append(result).append(SWTHeaderData.LINE_SEPARATOR);
return stringBuilder.toString();
}