uppercase bei positionsnumern
This commit is contained in:
parent
2a01b05347
commit
40fbca2d1d
3 changed files with 34 additions and 6 deletions
|
|
@ -128,13 +128,36 @@ public class InvoicePlugin extends AbstractPlugin {
|
|||
"Eingabefehler - Der Nettobetrag in in Zeile " + posItem.getItemValueString("numpos")
|
||||
+ " darf nicht 0 sein!");
|
||||
}
|
||||
|
||||
|
||||
// Buchunsperiode
|
||||
if (!posItem.getItemValueString(ITEM_INVOICE_PERIOD).trim().isEmpty()) {
|
||||
validateBuchungsperiode(posItem.getItemValueString(ITEM_INVOICE_PERIOD));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// Ergaenzung 18.05.2021:
|
||||
// es kann vorkommen, das die Anwender abweichende Buchungsperioden eingeben so
|
||||
// das die Hauptbuchungsperiode gar ncht merh vorkommt. Das darf aber nicht der
|
||||
// fall sein.
|
||||
// Im folgenden überprüfen wir ob eine Buchungszeile vorkommt in der keine oder
|
||||
// die Hauptbuchunsperiode ausgewählt wurde. Ist das nicht der Fal gibt es eine
|
||||
// Fehlermeldung für den Anwendere
|
||||
String hauptBuchungsperiode = workitem.getItemValueString("invoice.period");
|
||||
boolean buchungsperiodenValid = false;
|
||||
for (ItemCollection posItem : childs) {
|
||||
String posBuchungsperiode = posItem.getItemValueString("invoice.period");
|
||||
if (posBuchungsperiode.isEmpty() || posBuchungsperiode.equals(hauptBuchungsperiode)) {
|
||||
// alles fein!
|
||||
buchungsperiodenValid = true;
|
||||
}
|
||||
}
|
||||
if (buchungsperiodenValid == false) {
|
||||
// fehlerhafte Buchungsperioden.
|
||||
throw new PluginException(InvoicePlugin.class.getName(), ERROR_MISSING_DATA,
|
||||
"Eingabefehler - Bitte überprüfen Sie die Hauptbuchungsperiode mit den Buchugnsperioden der einzelnen Positionen!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return workitem;
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@
|
|||
<td><h:outputText value="#{orderitem.item['numpos']}" /></td>
|
||||
|
||||
<!-- Name -->
|
||||
<td><h:inputText value="#{orderitem.item['name']}"
|
||||
style="width:100%;" /></td>
|
||||
<td><h:inputText value="#{orderitem.item['name']}" styleClass="pos_nameinput"
|
||||
style="width:100%;text-transform: uppercase" /></td>
|
||||
|
||||
|
||||
<!-- Steuer -->
|
||||
|
|
@ -163,7 +163,12 @@
|
|||
function updateOrderItems(data) {
|
||||
if (data.status === 'success') {
|
||||
calculateSummary();
|
||||
$('[id$=oderlist]').imixsLayout();
|
||||
$('[id$=oderlist]').imixsLayout();
|
||||
|
||||
// mit diesem trick machen wir alle pos-nummern eingaben in uppercase
|
||||
$(".pos_nameinput" ).each(function( index ) {
|
||||
$(this).val($(this).val().toUpperCase());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
2
pom.xml
2
pom.xml
|
|
@ -27,7 +27,7 @@
|
|||
<!-- Versions -->
|
||||
<org.imixs.workflow.version>5.2.9</org.imixs.workflow.version>
|
||||
<org.imixs.marty.version>4.1.11</org.imixs.marty.version>
|
||||
<org.imixs.office.version>4.4.6-SNAPSHOT</org.imixs.office.version>
|
||||
<org.imixs.office.version>4.4.6</org.imixs.office.version>
|
||||
<org.imixs.adapters.version>2.2.6</org.imixs.adapters.version>
|
||||
<org.imixs.archive.version>2.2.11</org.imixs.archive.version>
|
||||
<org.imixs.melman.version>1.0.20</org.imixs.melman.version>
|
||||
|
|
|
|||
Loading…
Reference in a new issue