Add SpecifiedLogisticsServiceCharge to visualization
This commit is contained in:
@@ -154,6 +154,8 @@
|
||||
select="./rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator='false']"/>
|
||||
<xsl:apply-templates mode="BG-21"
|
||||
select="./rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator='true']"/>
|
||||
<xsl:apply-templates mode="BG-X-42"
|
||||
select="./rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedLogisticsServiceCharge"/>
|
||||
<xsl:apply-templates mode="BG-22"
|
||||
select="./rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation"/>
|
||||
<xsl:apply-templates mode="BG-23"
|
||||
@@ -1633,6 +1635,57 @@
|
||||
<!-- End: Jan Thiele -->
|
||||
</xr:Document_level_charge_reason_code>
|
||||
</xsl:template>
|
||||
<xsl:template mode="BG-X-42"
|
||||
match="/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedLogisticsServiceCharge">
|
||||
<xsl:variable name="bg-contents"
|
||||
as="item()*"><!--Der Pfad /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedLogisticsServiceCharge der Instanz in konkreter Syntax wird auf 4 Objekte abgebildet. -->
|
||||
<xsl:apply-templates mode="BT-X-271" select="./ram:Description"/>
|
||||
<xsl:apply-templates mode="BT-X-272" select="./ram:AppliedAmount"/>
|
||||
<xsl:apply-templates mode="BT-X-273" select="./ram:AppliedTradeTax/ram:CategoryCode"/>
|
||||
<xsl:apply-templates mode="BT-X-274" select="./ram:AppliedTradeTax/ram:RateApplicablePercent"/>
|
||||
</xsl:variable>
|
||||
<xsl:if test="$bg-contents">
|
||||
<xr:LOGISTICS_SERVICE_CHARGES>
|
||||
<xsl:attribute name="xr:id" select="'BG-X-42'"/>
|
||||
<xsl:attribute name="xr:src" select="xr:src-path(.)"/>
|
||||
<xsl:sequence select="$bg-contents"/>
|
||||
</xr:LOGISTICS_SERVICE_CHARGES>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
<xsl:template mode="BT-X-271"
|
||||
match="/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedLogisticsServiceCharge/ram:Description">
|
||||
<xr:Logistics_service_charge_description>
|
||||
<xsl:attribute name="xr:id" select="'BT-X-271'"/>
|
||||
<xsl:attribute name="xr:src" select="xr:src-path(.)"/>
|
||||
<xsl:call-template name="amount"/>
|
||||
</xr:Logistics_service_charge_description>
|
||||
</xsl:template>
|
||||
<xsl:template mode="BT-X-272"
|
||||
match="/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedLogisticsServiceCharge/ram:AppliedAmount">
|
||||
<xr:Logistics_service_charge_amount>
|
||||
<xsl:attribute name="xr:id" select="'BT-X-272'"/>
|
||||
<xsl:attribute name="xr:src" select="xr:src-path(.)"/>
|
||||
<xsl:call-template name="amount"/>
|
||||
</xr:Logistics_service_charge_amount>
|
||||
</xsl:template>
|
||||
<xsl:template mode="BT-X-273"
|
||||
match="/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedLogisticsServiceCharge/ram:AppliedTradeTax/ram:CategoryCode">
|
||||
<xr:Logistics_service_charge_VAT_category_code>
|
||||
<xsl:attribute name="xr:id" select="'BT-X-273'"/>
|
||||
<xsl:attribute name="xr:src" select="xr:src-path(.)"/>
|
||||
<xsl:call-template name="code.UNTDID.5305">
|
||||
<xsl:with-param name="myparam" select="."/>
|
||||
</xsl:call-template>
|
||||
</xr:Logistics_service_charge_VAT_category_code>
|
||||
</xsl:template>
|
||||
<xsl:template mode="BT-X-274"
|
||||
match="/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedLogisticsServiceCharge/ram:AppliedTradeTax/ram:RateApplicablePercent">
|
||||
<xr:Logistics_service_charge_VAT_rate>
|
||||
<xsl:attribute name="xr:id" select="'BT-X-274'"/>
|
||||
<xsl:attribute name="xr:src" select="xr:src-path(.)"/>
|
||||
<xsl:call-template name="percentage"/>
|
||||
</xr:Logistics_service_charge_VAT_rate>
|
||||
</xsl:template>
|
||||
<xsl:template mode="BG-22"
|
||||
match="/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation">
|
||||
<xsl:variable name="bg-contents"
|
||||
|
||||
@@ -84,6 +84,11 @@
|
||||
<xsl:variable name="i18n.bt103" select="'Umsatzsteuersatz des Zuschlages'"/>
|
||||
<xsl:variable name="i18n.bt104" select="'Grund für den Zuschlag'"/>
|
||||
<xsl:variable name="i18n.bt105" select="'Document level charge reason code'"/>
|
||||
<xsl:variable name="i18n.bgx42" select="'Versandkosten'"/>
|
||||
<xsl:variable name="i18n.btx274" select="'Umsatzsteuerkategorie der Versandkosten'"/>
|
||||
<xsl:variable name="i18n.btx272" select="'Betrag'"/>
|
||||
<xsl:variable name="i18n.btx273" select="'Umsatzsteuersatz der Versandkosten'"/>
|
||||
<xsl:variable name="i18n.btx271" select="'Versandkostenbeschreibung'"/>
|
||||
<xsl:variable name="i18n.bt20" select="'Skonto; weitere Zahlungsbed.'"/>
|
||||
<xsl:variable name="i18n.bt9" select="'Fälligkeitsdatum'"/>
|
||||
<xsl:variable name="i18n.bt81" select="'Code für das Zahlungsmittel'"/>
|
||||
@@ -216,7 +221,7 @@
|
||||
<xsl:variable name="i18n.payment" select="'Zahlungsdaten'"/>
|
||||
<xsl:variable name="i18n.contract_information" select="'Vertragsdaten'"/>
|
||||
<xsl:variable name="i18n.preceding_invoice_reference" select="'Vorausgegangene Rechnungen'"/>
|
||||
|
||||
|
||||
<xsl:include href="xrechnung-html.univ.xsl"/>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
@@ -84,6 +84,11 @@
|
||||
<xsl:variable name="i18n.bt103" select="'VAT rate of the charge amount'"/>
|
||||
<xsl:variable name="i18n.bt104" select="'Reason for the charge amount:'"/>
|
||||
<xsl:variable name="i18n.bt105" select="'Document level charge reason code'"/>
|
||||
<xsl:variable name="i18n.bgx42" select="'Shipping cost'"/>
|
||||
<xsl:variable name="i18n.btx274" select="'VAT category of the shipping cost'"/>
|
||||
<xsl:variable name="i18n.btx272" select="'Amount'"/>
|
||||
<xsl:variable name="i18n.btx273" select="'VAT rate of the shipping cost'"/>
|
||||
<xsl:variable name="i18n.btx271" select="'Shipping cost description'"/>
|
||||
<xsl:variable name="i18n.bt20" select="'Discount; other payment terms'"/>
|
||||
<xsl:variable name="i18n.bt9" select="'Due date'"/>
|
||||
<xsl:variable name="i18n.bt81" select="'Code for the means of payment'"/>
|
||||
@@ -216,7 +221,7 @@
|
||||
<xsl:variable name="i18n.payment" select="'Payment details'"/>
|
||||
<xsl:variable name="i18n.contract_information" select="'Contract Information'"/>
|
||||
<xsl:variable name="i18n.preceding_invoice_reference" select="'Previous invoices'"/>
|
||||
|
||||
|
||||
<xsl:include href="xrechnung-html.univ.xsl"/>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
@@ -84,6 +84,11 @@
|
||||
<xsl:variable name="i18n.bt103" select="'Taux de TVA du supplément'"/>
|
||||
<xsl:variable name="i18n.bt104" select="'Raison du supplément'"/>
|
||||
<xsl:variable name="i18n.bt105" select="'Document level charge reason code'"/>
|
||||
<xsl:variable name="i18n.bgx42" select="'Frais d''expédition'"/>
|
||||
<xsl:variable name="i18n.btx274" select="'Catégorie de TVA des frais de port'"/>
|
||||
<xsl:variable name="i18n.btx272" select="'Montant'"/>
|
||||
<xsl:variable name="i18n.btx273" select="'VAT rate of the shipping cost'"/>
|
||||
<xsl:variable name="i18n.btx271" select="'Taux de TVA des frais de port'"/>
|
||||
<xsl:variable name="i18n.bt20" select="'Rabais; autres conditions de paiement'"/>
|
||||
<xsl:variable name="i18n.bt9" select="'Date d''échéance'"/>
|
||||
<xsl:variable name="i18n.bt81" select="'Code du moyen de paiement'"/>
|
||||
@@ -216,7 +221,7 @@
|
||||
<xsl:variable name="i18n.payment" select="'Détails de paiement'"/>
|
||||
<xsl:variable name="i18n.contract_information" select="'Informations sur le contrat'"/>
|
||||
<xsl:variable name="i18n.preceding_invoice_reference" select="'Factures précédentes'"/>
|
||||
|
||||
|
||||
<xsl:include href="xrechnung-html.univ.xsl"/>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
@@ -1151,6 +1151,10 @@ function downloadData (element_id) {
|
||||
<div class="boxtabelle boxabstandtop boxtabelleZweispaltig">
|
||||
<xsl:apply-templates select="./xr:DOCUMENT_LEVEL_CHARGES"/>
|
||||
</div>
|
||||
|
||||
<div class="boxtabelle boxabstandtop boxtabelleZweispaltig">
|
||||
<xsl:apply-templates select="./xr:LOGISTICS_SERVICE_CHARGES"/>
|
||||
</div>
|
||||
|
||||
<div class="boxtabelle boxabstandtop boxtabelleZweispaltig first">
|
||||
<div class="boxzeile">
|
||||
@@ -1560,6 +1564,37 @@ function downloadData (element_id) {
|
||||
</div>
|
||||
<div class="boxabstand"></div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="uebersichtVersandkosten" match="xr:LOGISTICS_SERVICE_CHARGES">
|
||||
<div class="boxzeile">
|
||||
<div id="uebersichtVersandkosten" class="box">
|
||||
<div id="BG-X-42" title="BG-X-42" class="boxtitel"><xsl:value-of select="$i18n.bgx42"/></div>
|
||||
<div class="boxtabelle boxinhalt">
|
||||
<div class="rechnungsZeile">
|
||||
<div class="boxdaten rechnungSp1 bold"><xsl:value-of select="$i18n.btx274"/>: <span title="BT-X-274"><xsl:value-of select="xr:Logistics_service_charge_VAT_category_code"/></span></div>
|
||||
<div class="boxdaten rechnungSp2"></div>
|
||||
<div class="boxdaten rechnungSp3"></div>
|
||||
</div>
|
||||
<div class="rechnungsZeile">
|
||||
<div class="boxdaten rechnungSp1"><xsl:value-of select="$i18n.btx272"/></div>
|
||||
<div class="boxdaten rechnungSp2 color2">netto</div>
|
||||
<div id="BT-X-272" title="BT-X-272" class="boxdaten rechnungSp3 bold"><xsl:value-of select="format-number(xr:Logistics_service_charge_amount,'###.##0,00','decimal')"/></div>
|
||||
</div>
|
||||
<div class="rechnungsZeile">
|
||||
<div class="boxdaten rechnungSp1"><xsl:value-of select="$i18n.btx273"/></div>
|
||||
<div class="boxdaten rechnungSp2 color2"></div>
|
||||
<div id="BT-X-273" title="BT-X-273" class="boxdaten rechnungSp3"><xsl:value-of select="xr:Logistics_service_charge_VAT_rate"/></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grund">
|
||||
<div><xsl:value-of select="$i18n.btx271"/>: <span id="BT-X-271" title="BT-X-271" class="bold"><xsl:value-of select="xr:Logistics_service_charge_description"/></span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="boxabstand"></div>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="uebersichtZahlungsinformationen">
|
||||
<div id="uebersichtZahlungsinformationen" class="box subBox">
|
||||
|
||||
Reference in New Issue
Block a user