on 08-16-2006 9:07 PM
Hi,
I have belw xsl code for Linkages. The code works fine for straight sku, which is from Pallet to Case, Case to Assorted Pack and Assorted Pack to Each. However, when we have more than 1 case or Assorted pack the Link breaks. So the requirement is Pallet to Case, Case to AP, again Case to AP (if 2 cases), Case to AP, Case to AP (if 2 AP) and so on. Shall be appreciative if the below code can be fixed to the requirement.
-
<xsl:if test="$loopControl=2 and $itemIndex2 > 1">
<Relationship Name="Link GTIN" Type="Child">
<RelatedItem>
<xsl:variable name="umrezNum">
<xsl:value-of select="$sortedNodes/E1MARMM[$itemIndex2]/UMREZ"/>
</xsl:variable>
<xsl:variable name="umrenCurrent">
<xsl:value-of select="$sortedNodes/E1MARMM[$itemIndex2]/UMREN"/>
</xsl:variable>
<xsl:variable name="umrenPrevious">
<xsl:value-of select="$sortedNodes/E1MARMM[$itemIndex2 - 1]/UMREN"/>
</xsl:variable>
<xsl:attribute name="Quantity">
<xsl:variable name="quantity">
<xsl:value-of select="($umrezNum div $umrenCurrent) div $umrenPrevious"/>
</xsl:variable>
<xsl:if test="round($quantity)=$quantity">
<xsl:value-of select="$quantity"/>
</xsl:if>
<xsl:if test="round($quantity)!=$quantity">
<xsl:value-of select="0"/>
</xsl:if>
</xsl:attribute>
</RelatedItem>
</Relationship>
</xsl:if>
Pls. feel free to ask for more info. if required.
Thanks,
Hemal
Hi,
I have sent you email with the attachments.
Thanks,
Hemal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can I send an attachment to your email. If you can provide me one.
Thanks very much.
Hemal Gandhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you pls. let me know where exactly should I put <xsl:for-each> inorder to make it work.
Thanks,
Hemal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hemal,
maybe you'd want to put that code into a <xsl:for-each> tag.
Regards,
Henrique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.