update aus e-mail

This commit is contained in:
gaby 2021-02-01 12:12:30 +01:00
parent c5d54fffc9
commit 26eeb83147
3 changed files with 3200 additions and 76 deletions

View file

@ -5,22 +5,37 @@
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:a="http://xmlns.jcp.org/jsf/passthrough">
<div class="imixs-form-section-2">
<dl>
<dt>
Exchange Rate:<span class="imixs-required">*</span>
</dt>
<dd>
<h:inputText required="true"
value="#{workitem.item['invoice.exchangerate']}">
<f:convertNumber />
</h:inputText>
</dd>
</dl>
</div>
<h:panelGroup layout="block" styleClass="imixs-form-section"
id="oderlist" binding="#{orderlistContainer}">
<f:ajax render="oderlist" onevent="updateOrderItems">
<table class="imixsdatatable imixs-orderitems">
<tr>
<th style="">#</th>
<th style="">Positionsnummer<span class="imixs-required"> *</span></th>
<th style="width: 100px;">Steuer<span class="imixs-required"> *</span></th>
<th style="width: 100px;">Leistungsart<span class="imixs-required"> *</span></th>
<th style="width: 150px;text-align:right;">Netto</th>
<th style="width: 150px;text-align:right;">Brutto</th>
<th style="">Positionsnummer<span class="imixs-required">
*</span></th>
<th style="width: 100px;">Steuer<span class="imixs-required">
*</span></th>
<th style="width: 100px;">Leistungsart<span
class="imixs-required"> *</span></th>
<th style="width: 150px; text-align: right;">Netto</th>
<th style="width: 150px; text-align: right;">Brutto</th>
<th style="">
<!-- delete -->
</th>
@ -32,59 +47,64 @@
<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']}"
style="width:100%;" /></td>
<!-- Steuer -->
<td><h:selectOneMenu value="#{orderitem.item['tax']}" a:data-id="orderitem_tax" >
<f:selectItem itemLabel="" itemValue="" />
<f:selectItem itemLabel="Steuerfrei Ausfuhr" itemValue="0"></f:selectItem>
<f:selectItem itemLabel="Steuerfrei EU" itemValue="0EU"></f:selectItem>
<f:selectItem itemLabel="Steuerfrei Inland" itemValue="0IN"></f:selectItem>
<f:selectItem itemLabel="Steuerpflichtig 16%" itemValue="16"></f:selectItem>
<f:selectItem itemLabel="Steuerpflichtig 19%" itemValue="19"></f:selectItem>
<f:selectItem itemLabel="Reverse-Charge" itemValue="RC"></f:selectItem>
<f:selectItem itemLabel="Reverse-Charge-EU" itemValue="RCE"></f:selectItem>
</h:selectOneMenu></td>
<td><h:selectOneMenu value="#{orderitem.item['tax']}"
a:data-id="orderitem_tax">
<f:selectItem itemLabel="" itemValue="" />
<f:selectItem itemLabel="Steuerfrei Ausfuhr" itemValue="0"></f:selectItem>
<f:selectItem itemLabel="Steuerfrei EU" itemValue="0EU"></f:selectItem>
<f:selectItem itemLabel="Steuerfrei Inland" itemValue="0IN"></f:selectItem>
<f:selectItem itemLabel="Steuerpflichtig 16%" itemValue="16"></f:selectItem>
<f:selectItem itemLabel="Steuerpflichtig 19%" itemValue="19"></f:selectItem>
<f:selectItem itemLabel="Reverse-Charge" itemValue="RC"></f:selectItem>
<f:selectItem itemLabel="Reverse-Charge-EU" itemValue="RCE"></f:selectItem>
</h:selectOneMenu></td>
<!-- Leistungsart -->
<td><h:selectOneMenu value="#{orderitem.item['category']}" a:data-id="orderitem_category" >
<f:selectItem itemLabel="" itemValue="" />
<f:selectItem itemLabel="Dieselzuschlag" itemValue="DIESEL"></f:selectItem>
<f:selectItem itemLabel="EUSt" itemValue="EUST"></f:selectItem>
<f:selectItem itemLabel="Transportkosten - Nachlauf" itemValue="FRACHT"></f:selectItem>
<f:selectItem itemLabel="Umschlagkosten" itemValue="HANDL"></f:selectItem>
<f:selectItem itemLabel="Joloda" itemValue="JOLODA"></f:selectItem>
<f:selectItem itemLabel="Lagerkosten" itemValue="LAGER"></f:selectItem>
<f:selectItem itemLabel="Luftfracht" itemValue="LUFT"></f:selectItem>
<f:selectItem itemLabel="Mautgebühren" itemValue="MAUT"></f:selectItem>
<f:selectItem itemLabel="Seefracht" itemValue="SEE"></f:selectItem>
<f:selectItem itemLabel="Shipping Agency" itemValue="SHA"></f:selectItem>
<f:selectItem itemLabel="Sonstige" itemValue="SONST"></f:selectItem>
<f:selectItem itemLabel="Lagerkosten" itemValue="STORAGE"></f:selectItem>
<f:selectItem itemLabel="THC-Kosten" itemValue="THC"></f:selectItem>
<f:selectItem itemLabel="Zoll" itemValue="Zoll"></f:selectItem>
</h:selectOneMenu></td>
<td><h:selectOneMenu value="#{orderitem.item['category']}"
a:data-id="orderitem_category">
<f:selectItem itemLabel="" itemValue="" />
<f:selectItem itemLabel="Dieselzuschlag" itemValue="DIESEL"></f:selectItem>
<f:selectItem itemLabel="EUSt" itemValue="EUST"></f:selectItem>
<f:selectItem itemLabel="Transportkosten - Nachlauf"
itemValue="FRACHT"></f:selectItem>
<f:selectItem itemLabel="Umschlagkosten" itemValue="HANDL"></f:selectItem>
<f:selectItem itemLabel="Joloda" itemValue="JOLODA"></f:selectItem>
<f:selectItem itemLabel="Lagerkosten" itemValue="LAGER"></f:selectItem>
<f:selectItem itemLabel="Luftfracht" itemValue="LUFT"></f:selectItem>
<f:selectItem itemLabel="Mautgebühren" itemValue="MAUT"></f:selectItem>
<f:selectItem itemLabel="Seefracht" itemValue="SEE"></f:selectItem>
<f:selectItem itemLabel="Shipping Agency" itemValue="SHA"></f:selectItem>
<f:selectItem itemLabel="Sonstige" itemValue="SONST"></f:selectItem>
<f:selectItem itemLabel="Lagerkosten" itemValue="STORAGE"></f:selectItem>
<f:selectItem itemLabel="THC-Kosten" itemValue="THC"></f:selectItem>
<f:selectItem itemLabel="Zoll" itemValue="Zoll"></f:selectItem>
</h:selectOneMenu></td>
<!-- Netto Betrag -->
<td style="text-align:right;"><h:inputText value="#{orderitem.item['amount']}"
a:data-id="orderitem_amount" style="text-align: right;width:100%;">
<td style="text-align: right;"><h:inputText
value="#{orderitem.item['amount']}" a:data-id="orderitem_amount"
style="text-align: right;width:100%;">
<f:convertNumber minFractionDigits="2" locale="de" />
</h:inputText>
</td>
</h:inputText></td>
<!-- Brutto -->
<td data-id="orderitem_summary" style="text-align: right;padding-right:10px;"></td>
<td><h:commandLink actionListener="#{childItemController.remove(orderitem.item['numpos'])}">
<td data-id="orderitem_summary"
style="text-align: right; padding-right: 10px;"></td>
<td><h:commandLink
actionListener="#{childItemController.remove(orderitem.item['numpos'])}">
<span class="typcn typcn-trash imixs-state-info"></span>
<f:ajax render="#{orderlistContainer.clientId}"
onevent="updateOrderItems" />
</h:commandLink>
<h:inputHidden value="#{orderitem.item['total']}" a:data-id="orderitem_total">
<f:convertNumber minFractionDigits="2" locale="de" />
</h:inputHidden>
</td>
</h:commandLink> <h:inputHidden value="#{orderitem.item['total']}"
a:data-id="orderitem_total">
<f:convertNumber minFractionDigits="2" locale="de" />
</h:inputHidden></td>
</tr>
</ui:repeat>
@ -95,15 +115,17 @@
<td />
<td />
<td />
<td data-id="orderlist_summary" style="text-align: right;padding-right:10px;font-wight:bold;"></td>
<td data-id="orderlist_summary"
style="text-align: right; padding-right: 10px; font-wight: bold;"></td>
<td />
</tr>
</table>
<!-- total summary -->
<h:inputHidden value="#{workitem.item['order.total']}" a:data-id="orderitems_capacity">
<h:inputHidden value="#{workitem.item['order.total']}"
a:data-id="orderitems_capacity">
<f:convertNumber minFractionDigits="2" locale="de" />
</h:inputHidden>
<!-- add button -->
<h:commandButton value="#{message.add}" a:data-id="addposbutton_id"
actionListener="#{childItemController.add}">

View file

@ -5,6 +5,16 @@
xmlns:h="http://xmlns.jcp.org/jsf/html">
<dl>
<dt>
Exchange Rate:<span class="imixs-required">*</span>
</dt>
<dd>
<h:outputText required="true"
value="#{workitem.item['invoice.exchangerate']}">
</h:outputText>
</dd>
</dl>
<h:panelGroup layout="block" styleClass="imixs-form-section"
id="oderlist" binding="#{orderlistContainer}">
@ -13,11 +23,12 @@
<tr>
<th style="">#</th>
<th style="">Positionsnummer<span class="imixs-required"> *</span></th>
<th style="">Positionsnummer<span class="imixs-required">
*</span></th>
<th style="width: 100px;">Steuer</th>
<th style="width: 100px;">Leistungsart</th>
<th style="width: 150px;text-align:right;">Netto</th>
<th style="width: 150px;text-align:right;">Brutto</th>
<th style="width: 150px; text-align: right;">Netto</th>
<th style="width: 150px; text-align: right;">Brutto</th>
</tr>
<ui:repeat var="orderitem" value="#{childItemController.childItems}">
@ -29,18 +40,18 @@
<!-- Name -->
<td><h:outputText value="#{orderitem.item['name']}" /></td>
<td><h:outputText value="#{orderitem.item['tax']}" /></td>
<td><h:outputText value="#{orderitem.item['category']}" /></td>
<td style="text-align: right;"><h:outputText value="#{orderitem.item['amount']}"
/></td>
<td style="text-align: right;"><h:outputText value="#{orderitem.item['total']}"
/></td>
<td style="text-align: right;"><h:outputText
value="#{orderitem.item['amount']}" /></td>
<td style="text-align: right;"><h:outputText
value="#{orderitem.item['total']}" /></td>
</tr>
@ -54,14 +65,13 @@
<td />
<td />
<td style="text-align: right;">Summe:</td>
<td class="orderlist_summary" style="text-align: right;">
<h:outputText value="#{workitem.item['order.total']}">
</h:outputText>
</td>
<td class="orderlist_summary" style="text-align: right;"><h:outputText
value="#{workitem.item['order.total']}">
</h:outputText></td>
</tr>
</table>
</f:ajax>
</h:panelGroup>
@ -72,10 +82,6 @@
<script type="text/javascript">
/*<![CDATA[*/
/*]]>*/
</script>

File diff suppressed because it is too large Load diff