diff --git a/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/InvoicePlugin.java b/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/InvoicePlugin.java index 9434fdc..ba64fed 100644 --- a/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/InvoicePlugin.java +++ b/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/InvoicePlugin.java @@ -74,13 +74,14 @@ public class InvoicePlugin extends AbstractPlugin { "Eingabefehler - Bitte wählen Sie eine Zahlungsart aus!"); } // doppelte Rechnungsnummer prüfen - validateInvoiceNumber(workitem); + if (workitem.getTaskID() == TASK_ERFASSUNG ) { + validateInvoiceNumber(workitem); + } - // Buchungsperiode auf plausi prüfen - validateBuchungsperiode(workitem); - - // Cargosoft Kreditorennnummer prüfen if (workitem.getTaskID() == TASK_ERFASSUNG || workitem.getTaskID() == TASK_SACHPRUEFUNG) { + // Buchungsperiode auf plausi prüfen + validateBuchungsperiode(workitem); + // Cargosoft Kreditorennnummer prüfen validateCargosoftCdtrNumber(workitem); } }