fix language bei Mahnungen
This commit is contained in:
parent
82a61e8931
commit
50ea520fbd
1 changed files with 10 additions and 0 deletions
|
|
@ -453,6 +453,16 @@ public class CargosoftXMLInvoiceImportService {
|
||||||
ItemCollection dbtr = kreditorDebitorService.findDebitor(dbtrNumber);
|
ItemCollection dbtr = kreditorDebitorService.findDebitor(dbtrNumber);
|
||||||
if (dbtr != null) {
|
if (dbtr != null) {
|
||||||
workitem.setItemValue("dbtr.name", dbtr.getItemValueString("_vendor_name"));
|
workitem.setItemValue("dbtr.name", dbtr.getItemValueString("_vendor_name"));
|
||||||
|
// Anhand der Creditoren Stammdaten errrechnen wir die Sprache für diese
|
||||||
|
// Rechnung
|
||||||
|
String country = dbtr.getItemValueString("_VENDOR_COUNTRY");
|
||||||
|
workitem.setItemValue("dbtr.country", country);
|
||||||
|
if (country.equalsIgnoreCase("de") || country.equalsIgnoreCase("ch")
|
||||||
|
|| country.equalsIgnoreCase("at")) {
|
||||||
|
workitem.setItemValue("invoice.language", "DE");
|
||||||
|
} else {
|
||||||
|
workitem.setItemValue("invoice.language", "EN");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (PluginException e) {
|
} catch (PluginException e) {
|
||||||
// e.printStackTrace();
|
// e.printStackTrace();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue