Skip to content
Snippets Groups Projects
Commit 499504e9 authored by s.garb's avatar s.garb
Browse files

BugFix

parent 367dc6ee
No related branches found
No related tags found
No related merge requests found
......@@ -221,11 +221,10 @@ OfferUtils.buildOfferReport = function (pOfferID, pExclDiscountGroupcodes)
}
let excluded = 1
if(pExclDiscountGroupcodes){
pExclDiscountGroupcodes = JSON.parse(pExclDiscountGroupcodes);
excluded = pExclDiscountGroupcodes.indexOf(item[15])
}
//vatsum = itemSum * vat / 100
if(printHeadDiscount && offerData[16] && excluded > -1){
if(printHeadDiscount && offerData[16] && excluded == -1){
let discItemSum = eMath.subDec(itemSum, eMath.divDec(eMath.mulDec(itemSum, offerData[16]),100));
vatsum = eMath.divDec(eMath.mulDec(discItemSum, item[12]), 100);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment