Merge branch 'master' of ssh://git@git.imixs.com/git/office-alexander-logistics

This commit is contained in:
Ralph Soika 2021-05-19 21:19:36 +02:00
commit 21ae74d6d2

View file

@ -97,7 +97,7 @@ public class InvoicePlugin extends AbstractPlugin {
// throw a plugin exception - because name is missing! // throw a plugin exception - because name is missing!
throw new PluginException(InvoicePlugin.class.getName(), ERROR_MISSING_DATA, throw new PluginException(InvoicePlugin.class.getName(), ERROR_MISSING_DATA,
"Eingabefehler - Die Positionsnummer in Zeile " + posItem.getItemValueString("numpos") "Eingabefehler - Die Positionsnummer in Zeile " + posItem.getItemValueString("numpos")
+ " muss aufgefüllt sein!"); + " muss ausgefüllt sein!");
} }
// validate pos for regex pattern 'XX-YYY-####-###' // validate pos for regex pattern 'XX-YYY-####-###'
@ -105,27 +105,27 @@ public class InvoicePlugin extends AbstractPlugin {
// throw a plugin exception - because name is missing! // throw a plugin exception - because name is missing!
throw new PluginException(InvoicePlugin.class.getName(), ERROR_MISSING_DATA, throw new PluginException(InvoicePlugin.class.getName(), ERROR_MISSING_DATA,
"Eingabefehler - Die Positionsnummer in Zeile " + posItem.getItemValueString("numpos") "Eingabefehler - Die Positionsnummer in Zeile " + posItem.getItemValueString("numpos")
+ " muss im Format 'XX-YYY-####-###' eingeben werden!"); + " muss im Format 'XX-YYY-####-###' eingegeben werden!");
} }
if (posItem.getItemValueString("category").trim().isEmpty()) { if (posItem.getItemValueString("category").trim().isEmpty()) {
// throw a plugin exception - because name is missing! // throw a plugin exception - because name is missing!
throw new PluginException(InvoicePlugin.class.getName(), ERROR_MISSING_DATA, throw new PluginException(InvoicePlugin.class.getName(), ERROR_MISSING_DATA,
"Eingabefehler - Die Leistungsart in Zeile " + posItem.getItemValueString("numpos") "Eingabefehler - Die Leistungsart in Zeile " + posItem.getItemValueString("numpos")
+ " muss aufgefüllt sein!"); + " muss ausgefüllt sein!");
} }
if (posItem.getItemValueString("tax").trim().isEmpty()) { if (posItem.getItemValueString("tax").trim().isEmpty()) {
// throw a plugin exception - because name is missing! // throw a plugin exception - because name is missing!
throw new PluginException(InvoicePlugin.class.getName(), ERROR_MISSING_DATA, throw new PluginException(InvoicePlugin.class.getName(), ERROR_MISSING_DATA,
"Eingabefehler - Die Steuer in Zeile " + posItem.getItemValueString("numpos") "Eingabefehler - Die Steuer in Zeile " + posItem.getItemValueString("numpos")
+ " muss aufgefüllt sein!"); + " muss ausgefüllt sein!");
} }
if (posItem.getItemValueFloat("amount") == 0) { if (posItem.getItemValueFloat("amount") == 0) {
// throw a plugin exception - because name is missing! // throw a plugin exception - because name is missing!
throw new PluginException(InvoicePlugin.class.getName(), ERROR_MISSING_DATA, throw new PluginException(InvoicePlugin.class.getName(), ERROR_MISSING_DATA,
"Eingabefehler - Der Nettobetrag in in Zeile " + posItem.getItemValueString("numpos") "Eingabefehler - Der Nettobetrag in Zeile " + posItem.getItemValueString("numpos")
+ " darf nicht 0 sein!"); + " darf nicht 0 sein!");
} }
@ -156,7 +156,7 @@ public class InvoicePlugin extends AbstractPlugin {
if (buchungsperiodenValid == false) { if (buchungsperiodenValid == false) {
// fehlerhafte Buchungsperioden. // fehlerhafte Buchungsperioden.
throw new PluginException(InvoicePlugin.class.getName(), ERROR_MISSING_DATA, throw new PluginException(InvoicePlugin.class.getName(), ERROR_MISSING_DATA,
"Eingabefehler - Bitte überprüfen Sie die Hauptbuchungsperiode mit den Buchugnsperioden der einzelnen Positionen!"); "Eingabefehler - Bitte überprüfen Sie die Hauptbuchungsperiode mit den Buchungsperioden der einzelnen Positionen!");
} }
} }
@ -237,7 +237,7 @@ public class InvoicePlugin extends AbstractPlugin {
// der Vorgang nicht weitergeleitet // der Vorgang nicht weitergeleitet
workitem.replaceItemValue("invoice.number.duplicate", invoiceNumber); workitem.replaceItemValue("invoice.number.duplicate", invoiceNumber);
throw new PluginException(InvoicePlugin.class.getName(), ERROR_DUPPLICATE_INVOICE_NUMBER, throw new PluginException(InvoicePlugin.class.getName(), ERROR_DUPPLICATE_INVOICE_NUMBER,
"ACHTUNG: Die Rechnungsnummer wurde bereits gebucht. Bitte prüfen Sie den Beleg. Sollte die Belegnummer korrekt sein, wiederholen Sie die Atkion."); "ACHTUNG: Die Rechnungsnummer wurde bereits gebucht. Bitte prüfen Sie den Beleg. Sollte die Belegnummer korrekt sein, wiederholen Sie die Aktion.");
} }
} else { } else {
// clear ! // clear !