Skip to content
Snippets Groups Projects
Commit 617dc79e authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon: Committed by Sebastian Pongratz
Browse files

[Projekt: xRM-Sales][TicketNr.: 1082244][Fehler in Berechnung des Rabatts in Angebot]

parent f0b83d0a
No related branches found
No related tags found
No related merge requests found
......@@ -643,8 +643,8 @@ OfferItemUtils.getDiscountedNet = function(pExcludedIs, pOfferId, pDiscount, pEx
if(!offeritemData[i][5].toString().includes(".")//only top items
&& offeritemData[i][4] == "0")//which are not optional
{
sum = eMath.addDec(sum, eMath.subDec(offeritemData[i][1], offeritemData[i][2])*offeritemData[i][0]);
vat = eMath.addDec(vat, offeritemData[i][3]*eMath.subDec(offeritemData[i][1], offeritemData[i][2])*offeritemData[i][0]/100);
sum = eMath.addDec(sum, eMath.subDec(offeritemData[i][1], offeritemData[i][1]/100*offeritemData[i][2])*offeritemData[i][0]);
vat = eMath.addDec(vat, offeritemData[i][3]*eMath.subDec(offeritemData[i][1], offeritemData[i][1]/100*offeritemData[i][2])*offeritemData[i][0]/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