var total = value.reduce((prev, next)=>{ return prev +(next.quantity * this.productMap(next.productId).price) },0 )