if(!offeritem[5].includes("."))//only if it's no child
{
//quantity * price
fullPrice=eMath.mulDec(parseFloat(offeritem[9]),parseFloat(offeritem[10]));//price without discount
//itemSum = (fullPrice * (100 - discount)) / 100
itemSum=eMath.roundDec(eMath.divDec(eMath.mulDec(fullPrice,eMath.subDec(100,offeritem[11])),100),2,eMath.ROUND_HALF_EVEN);//sum of the item (with discount)