fixed decimal format germany for cargosoft export
This commit is contained in:
parent
9edadfed88
commit
c2213ff656
1 changed files with 172 additions and 169 deletions
|
|
@ -27,6 +27,7 @@ import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
import java.text.DecimalFormat;
|
import java.text.DecimalFormat;
|
||||||
|
import java.text.DecimalFormatSymbols;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
@ -71,8 +72,10 @@ public class CargosoftExportScheduler implements Scheduler {
|
||||||
public static final String FTP_ERROR = "FTP_ERROR";
|
public static final String FTP_ERROR = "FTP_ERROR";
|
||||||
|
|
||||||
public static DateFormat dateFormat = new SimpleDateFormat("ddMMyyyy");
|
public static DateFormat dateFormat = new SimpleDateFormat("ddMMyyyy");
|
||||||
public static DecimalFormat decimalFormat = new DecimalFormat("0.00");
|
public static DecimalFormat decimalFormat = new DecimalFormat("0.00",
|
||||||
public static DecimalFormat rateFormat = new DecimalFormat("0.000000");
|
new DecimalFormatSymbols(java.util.Locale.GERMANY));
|
||||||
|
public static DecimalFormat rateFormat = new DecimalFormat("0.000000",
|
||||||
|
new DecimalFormatSymbols(java.util.Locale.GERMANY));
|
||||||
|
|
||||||
@EJB
|
@EJB
|
||||||
DocumentService documentService;
|
DocumentService documentService;
|
||||||
|
|
@ -162,7 +165,7 @@ public class CargosoftExportScheduler implements Scheduler {
|
||||||
} else {
|
} else {
|
||||||
line = line + ";0,00;0,000000;";
|
line = line + ";0,00;0,000000;";
|
||||||
}
|
}
|
||||||
line = line + ";;;;;;" +doc.getItemValueString("invoice.text");
|
line = line + ";;;;;;" + doc.getItemValueString("invoice.text");
|
||||||
// auffüllen mit 77 mal ';'
|
// auffüllen mit 77 mal ';'
|
||||||
int i = 69;
|
int i = 69;
|
||||||
while (i > 0) {
|
while (i > 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue