sepa update
This commit is contained in:
parent
90b41bb512
commit
394e923a70
3 changed files with 24 additions and 24 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
<dl>
|
<dl>
|
||||||
<dt>IBAN</dt>
|
<dt>IBAN</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<h:outputText value="#{workitem.item['_dbtr_iban']}" />
|
<h:outputText value="#{workitem.item['dbtr.iban']}" />
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
<dl>
|
<dl>
|
||||||
<dt>BIC</dt>
|
<dt>BIC</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<h:outputText value="#{workitem.item['_dbtr_bic']}" />
|
<h:outputText value="#{workitem.item['dbtr.bic']}" />
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
|
|
@ -39,24 +39,24 @@
|
||||||
<th style="">IBAN</th>
|
<th style="">IBAN</th>
|
||||||
<th style="">BIC</th>
|
<th style="">BIC</th>
|
||||||
</tr>
|
</tr>
|
||||||
<c:forEach items="#{workitem.itemList['txtworkitemref']}" var="id">
|
<c:forEach items="#{workitem.itemList['$workitemref']}" var="id">
|
||||||
<!-- load inovice data by documentController: #{documentController.load(id)} -->
|
<!-- load inovice data by documentController: #{documentController.load(id)} -->
|
||||||
<ui:param name="invoice" value="#{documentController.getDocument()}"></ui:param>
|
<ui:param name="invoice" value="#{documentController.getDocument()}"></ui:param>
|
||||||
<tr>
|
<tr>
|
||||||
<td>#{invoice.item['_kreditor']}</td>
|
<td>#{invoice.item['cdtr.name']}</td>
|
||||||
<td>#{invoice.item['_invoicenumber']}</td>
|
<td>#{invoice.item['invoice.number']}</td>
|
||||||
<td><h:outputText value="#{invoice.item['_invoicedate']}">
|
<td><h:outputText value="#{invoice.item['invoice.date']}">
|
||||||
<f:convertDateTime pattern="#{message.datePatternShort}"
|
<f:convertDateTime pattern="#{message.datePatternShort}"
|
||||||
timeZone="#{message.timeZone}" />
|
timeZone="#{message.timeZone}" />
|
||||||
</h:outputText></td>
|
</h:outputText></td>
|
||||||
<td style="text-align: right;"><h:outputText
|
<td style="text-align: right;"><h:outputText
|
||||||
value="#{invoice.item['_amount_brutto']}">
|
value="#{invoice.item['invoice.total']}">
|
||||||
<f:convertNumber minFractionDigits="2" locale="de" />
|
<f:convertNumber minFractionDigits="2" locale="de" />
|
||||||
</h:outputText></td>
|
</h:outputText></td>
|
||||||
|
|
||||||
<td>#{invoice.item['_currency']}</td>
|
<td>#{invoice.item['invoice.currency']}</td>
|
||||||
<td>#{invoice.item ['_cdtr_iban']}</td>
|
<td>#{invoice.item ['cdtr.iban']}</td>
|
||||||
<td>#{invoice.item['_cdtr_bic']}</td>
|
<td>#{invoice.item['cdtr.bic']}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
|
|
||||||
|
|
@ -65,10 +65,10 @@
|
||||||
<td />
|
<td />
|
||||||
<td><strong>Summary</strong></td>
|
<td><strong>Summary</strong></td>
|
||||||
<td style="text-align: right;"><strong><h:outputText
|
<td style="text-align: right;"><strong><h:outputText
|
||||||
value="#{sepaController.calculateSum(workitem.itemList['txtworkitemref'], '_amount_brutto')}">
|
value="#{sepaController.calculateSum(workitem.itemList['$workitemref'], 'invoice.total')}">
|
||||||
<f:convertNumber minFractionDigits="2" locale="de" />
|
<f:convertNumber minFractionDigits="2" locale="de" />
|
||||||
</h:outputText></strong></td>
|
</h:outputText></strong></td>
|
||||||
<td><strong>#{invoice.item['_currency']}</strong></td>
|
<td><strong>#{invoice.item['invoice.currency']}</strong></td>
|
||||||
<td />
|
<td />
|
||||||
<td />
|
<td />
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -23,7 +23,7 @@
|
||||||
select="count(/data/document[normalize-space(item[@name = '$workflowgroup']/value) = 'Rechnungseingang']/item[@name='$uniqueid']/value)" />
|
select="count(/data/document[normalize-space(item[@name = '$workflowgroup']/value) = 'Rechnungseingang']/item[@name='$uniqueid']/value)" />
|
||||||
<!-- compute total amount -->
|
<!-- compute total amount -->
|
||||||
<xsl:variable name="totalsum"
|
<xsl:variable name="totalsum"
|
||||||
select="xs:decimal(sum(/data/document[normalize-space(item[@name = '$workflowgroup']/value) = 'Rechnungseingang']/item[@name='_amount_brutto']/value))" />
|
select="xs:decimal(sum(/data/document[normalize-space(item[@name = '$workflowgroup']/value) = 'Rechnungseingang']/item[@name='invoice.total']/value))" />
|
||||||
<!-- round to 2 digits -->
|
<!-- round to 2 digits -->
|
||||||
<xsl:variable name="total"
|
<xsl:variable name="total"
|
||||||
select="xs:decimal(round-half-to-even($totalsum, 2))" />
|
select="xs:decimal(round-half-to-even($totalsum, 2))" />
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
<InitgPty>
|
<InitgPty>
|
||||||
<Nm>
|
<Nm>
|
||||||
<xsl:value-of
|
<xsl:value-of
|
||||||
select="$exportWorkitem/item[@name='_dbtr_name']/value" />
|
select="$exportWorkitem/item[@name='dbtr.name']/value" />
|
||||||
</Nm>
|
</Nm>
|
||||||
</InitgPty>
|
</InitgPty>
|
||||||
</GrpHdr>
|
</GrpHdr>
|
||||||
|
|
@ -75,14 +75,14 @@
|
||||||
<Dbtr>
|
<Dbtr>
|
||||||
<Nm>
|
<Nm>
|
||||||
<xsl:value-of
|
<xsl:value-of
|
||||||
select="$exportWorkitem/item[@name='_dbtr_name']/value" />
|
select="$exportWorkitem/item[@name='dbtr.name']/value" />
|
||||||
</Nm>
|
</Nm>
|
||||||
</Dbtr>
|
</Dbtr>
|
||||||
<DbtrAcct>
|
<DbtrAcct>
|
||||||
<Id>
|
<Id>
|
||||||
<IBAN>
|
<IBAN>
|
||||||
<xsl:value-of
|
<xsl:value-of
|
||||||
select="replace($exportWorkitem/item[@name='_dbtr_iban']/value, ' ', '')" />
|
select="replace($exportWorkitem/item[@name='dbtr.iban']/value, ' ', '')" />
|
||||||
</IBAN>
|
</IBAN>
|
||||||
</Id>
|
</Id>
|
||||||
</DbtrAcct>
|
</DbtrAcct>
|
||||||
|
|
@ -90,7 +90,7 @@
|
||||||
<FinInstnId>
|
<FinInstnId>
|
||||||
<BIC>
|
<BIC>
|
||||||
<xsl:value-of
|
<xsl:value-of
|
||||||
select="$exportWorkitem/item[@name='_dbtr_bic']/value" />
|
select="$exportWorkitem/item[@name='dbtr.bic']/value" />
|
||||||
</BIC>
|
</BIC>
|
||||||
</FinInstnId>
|
</FinInstnId>
|
||||||
</DbtrAgt>
|
</DbtrAgt>
|
||||||
|
|
@ -133,33 +133,33 @@
|
||||||
<Amt>
|
<Amt>
|
||||||
<InstdAmt>
|
<InstdAmt>
|
||||||
<xsl:attribute name="Ccy"><xsl:value-of
|
<xsl:attribute name="Ccy"><xsl:value-of
|
||||||
select="item[@name='_currency']/value" /></xsl:attribute>
|
select="item[@name='invoice.currency']/value" /></xsl:attribute>
|
||||||
<xsl:value-of
|
<xsl:value-of
|
||||||
select="item[@name='_amount_brutto']/value" />
|
select="item[@name='invoice.total']/value" />
|
||||||
</InstdAmt>
|
</InstdAmt>
|
||||||
</Amt>
|
</Amt>
|
||||||
<CdtrAgt>
|
<CdtrAgt>
|
||||||
<FinInstnId>
|
<FinInstnId>
|
||||||
<BIC>
|
<BIC>
|
||||||
<xsl:value-of select="item[@name='_cdtr_bic']/value" />
|
<xsl:value-of select="item[@name='cdtr.bic']/value" />
|
||||||
</BIC>
|
</BIC>
|
||||||
</FinInstnId>
|
</FinInstnId>
|
||||||
</CdtrAgt>
|
</CdtrAgt>
|
||||||
<Cdtr>
|
<Cdtr>
|
||||||
<Nm>
|
<Nm>
|
||||||
<xsl:value-of select="item[@name='_cdtr_name']/value" />
|
<xsl:value-of select="item[@name='cdtr.name']/value" />
|
||||||
</Nm>
|
</Nm>
|
||||||
</Cdtr>
|
</Cdtr>
|
||||||
<CdtrAcct>
|
<CdtrAcct>
|
||||||
<Id>
|
<Id>
|
||||||
<IBAN>
|
<IBAN>
|
||||||
<xsl:value-of select="replace(item[@name='_cdtr_iban']/value, ' ', '')" />
|
<xsl:value-of select="replace(item[@name='cdtr.iban']/value, ' ', '')" />
|
||||||
</IBAN>
|
</IBAN>
|
||||||
</Id>
|
</Id>
|
||||||
</CdtrAcct>
|
</CdtrAcct>
|
||||||
<RmtInf>
|
<RmtInf>
|
||||||
<Ustrd>
|
<Ustrd>
|
||||||
<xsl:value-of select="item[@name='_subject']/value" />
|
<xsl:value-of select="item[@name='$workflowsummary']/value" />
|
||||||
</Ustrd>
|
</Ustrd>
|
||||||
</RmtInf>
|
</RmtInf>
|
||||||
</CdtTrfTxInf>
|
</CdtTrfTxInf>
|
||||||
Loading…
Reference in a new issue