Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xsl:transform version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/">
- <out>
- <allowed>
- <xsl:choose>
- <!--Allow if the sum of order details after any discount equals to zero. This calculation excludes any shipping, handling or tax charges that could occur downstream-->
- <xsl:when test="sum(/in/salesOrder/salesOrderDetails/salesOrderDetail/(price * quantity + discountAmount)) = 0">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </allowed>
- </out>
- </xsl:template>
- </xsl:transform>
Advertisement
Add Comment
Please, Sign In to add comment