Created
May 3, 2017 06:28
-
-
Save MgenGlder/f800f47559541095ded5233244b2f3c3 to your computer and use it in GitHub Desktop.
calculate order level discounts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<isscript> | |
var merchTotalExclOrderDiscounts : dw.value.Money = LineItemCtnr.getAdjustedMerchandizeTotalPrice(false); | |
var merchTotalInclOrderDiscounts : dw.value.Money = LineItemCtnr.getAdjustedMerchandizeTotalPrice(true); | |
var orderDiscount : dw.value.Money = merchTotalExclOrderDiscounts.subtract( merchTotalInclOrderDiscounts ); | |
</isscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment