rm param 'LINES', add '<ReferenceBuyerOrder />'
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<DocumentId>0180001585_00000000001000003539</DocumentId>
|
||||
<DeliveryNote>0180001585</DeliveryNote>
|
||||
<DocumentType>XMLDESADV</DocumentType>
|
||||
<DocumentSubType>DESADV_GI</DocumentSubType>
|
||||
<DocumentSubType>DESADV_IBT</DocumentSubType>
|
||||
<DocumentDate>2024-01-09T00:00:00.0000000+01:00</DocumentDate>
|
||||
<DeliveryDate>2024-01-10T11:00:00.0000000+01:00</DeliveryDate>
|
||||
<ReferenceSupplierOrder/>
|
||||
|
||||
+30
-21
@@ -13,8 +13,8 @@
|
||||
<xsl:apply-templates />
|
||||
</Message>
|
||||
</xsl:template>
|
||||
<xsl:template match="/ZFSHDLV/IDOC">
|
||||
|
||||
<xsl:template match="/ZFSHDLV/IDOC">
|
||||
<xsl:if test="./E1EDL20/E1EDL37">
|
||||
<xsl:call-template name="HandlingUnit" />
|
||||
</xsl:if>
|
||||
@@ -22,18 +22,22 @@
|
||||
<xsl:call-template name="WithOutHandlingUnits" />
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="Message">
|
||||
<xsl:param name="CASE" />
|
||||
<xsl:param name="ID" />
|
||||
<xsl:param name="SSCCID" />
|
||||
<xsl:param name="LINES" />
|
||||
<xsl:param name="POSITIONS" />
|
||||
<!-- START: local variable declaration -->
|
||||
<xsl:variable name="PackageCode">
|
||||
<xsl:copy>33E</xsl:copy>
|
||||
<xsl:copy>
|
||||
33E
|
||||
</xsl:copy>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="PackageType">
|
||||
<xsl:copy>BJ</xsl:copy>
|
||||
<xsl:copy>
|
||||
BJ
|
||||
</xsl:copy>
|
||||
</xsl:variable>
|
||||
<!-- END: local variable declaration -->
|
||||
<XMLDESADV>
|
||||
@@ -47,7 +51,9 @@
|
||||
<DocumentType>
|
||||
<xsl:call-template name="DocumentType">
|
||||
<xsl:with-param name="DocumentType">
|
||||
<xsl:copy>DEV-8311</xsl:copy>
|
||||
<xsl:copy>
|
||||
DEV-8311
|
||||
</xsl:copy>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</DocumentType>
|
||||
@@ -110,10 +116,14 @@
|
||||
<XMLPACKAGEGROUP>
|
||||
<NumberOfPackages>
|
||||
<xsl:choose>
|
||||
<xsl:when test="format-number(/ZFSHDLV/IDOC/E1EDL20/ANZPK,'#') > 0 ">
|
||||
<xsl:value-of select="format-number(/ZFSHDLV/IDOC/E1EDL20/ANZPK,'#')" />
|
||||
<xsl:when
|
||||
test="format-number(/ZFSHDLV/IDOC/E1EDL20/ANZPK,'#') > 0 ">
|
||||
<xsl:value-of
|
||||
select="format-number(/ZFSHDLV/IDOC/E1EDL20/ANZPK,'#')" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise><xsl:copy-of select="1"/></xsl:otherwise>
|
||||
<xsl:otherwise>
|
||||
<xsl:copy-of select="1" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
</NumberOfPackages>
|
||||
@@ -122,7 +132,9 @@
|
||||
</PackageCode>
|
||||
</XMLPACKAGEGROUP>
|
||||
<XMLSSCCGROUP>
|
||||
<SSCC><xsl:value-of select="$SSCCID" /></SSCC>
|
||||
<SSCC>
|
||||
<xsl:value-of select="$SSCCID" />
|
||||
</SSCC>
|
||||
<PackageCode>
|
||||
<xsl:value-of select="$PackageCode" />
|
||||
</PackageCode>
|
||||
@@ -142,38 +154,33 @@
|
||||
<xsl:value-of select="./POSNR" />
|
||||
</PositionNumber>
|
||||
<GTIN>
|
||||
<xsl:value-of
|
||||
select="./EAN11" />
|
||||
<xsl:value-of select="./EAN11" />
|
||||
</GTIN>
|
||||
<DeliveredQuantity>
|
||||
<xsl:value-of
|
||||
select="./LGMNG" />
|
||||
<xsl:value-of select="./LGMNG" />
|
||||
</DeliveredQuantity>
|
||||
<QuantityQualifier>
|
||||
<xsl:call-template name="QuantityQualifier">
|
||||
<xsl:with-param name="UoM">
|
||||
<xsl:value-of
|
||||
select="./MEINS" />
|
||||
<xsl:value-of select="./MEINS" />
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</QuantityQualifier>
|
||||
<DeliveryPrice></DeliveryPrice>
|
||||
<ReferenceSupplierOrder>
|
||||
<xsl:value-of
|
||||
select="./VGBEL" />
|
||||
<xsl:value-of select="./VGBEL" />
|
||||
</ReferenceSupplierOrder>
|
||||
<ReferenceBuyerOrder />
|
||||
</XMLITEMS>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
|
||||
|
||||
<xsl:call-template name="Message">
|
||||
<xsl:with-param name="CASE" select="'NoHandlingUnit'" />
|
||||
<xsl:with-param name="ID" select="./E1EDL20/VBELN" />
|
||||
<xsl:with-param name="SSCCID" select="./E1EDL20/VBELN" />
|
||||
<xsl:with-param name="POSITIONS" select="$POSITIONS" />
|
||||
</xsl:call-template>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="HandlingUnit">
|
||||
@@ -221,8 +228,10 @@
|
||||
</xsl:variable>
|
||||
<xsl:call-template name="Message">
|
||||
<xsl:with-param name="CASE" select="'HandlingUnit'" />
|
||||
<xsl:with-param name="ID" select="concat(../VBELN,'_',./EXIDV)"/>
|
||||
<xsl:with-param name="SSCCID" select="format-number(./EXIDV,'#')" />
|
||||
<xsl:with-param name="ID"
|
||||
select="concat(../VBELN,'_',./EXIDV)" />
|
||||
<xsl:with-param name="SSCCID"
|
||||
select="format-number(./EXIDV,'#')" />
|
||||
<xsl:with-param name="POSITIONS" select="$POSITIONS" />
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
|
||||
Reference in New Issue
Block a user