@infrab4a/connect-angular 4.4.1-beta.0 → 4.4.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1190,8 +1190,8 @@ class CouponService {
1190
1190
  let lineItemsDiscount = [];
1191
1191
  if (type == CouponTypes.ABSOLUTE) {
1192
1192
  lineItemsDiscount = lineItems.map((item) => {
1193
- const totalItemPercentage = ((item.quantity * item.pricePaid) / subTotal) * couponDiscount;
1194
- const discountItem = item.pricePaid - item.pricePaid * totalItemPercentage;
1193
+ const totalItemPercentage = item.pricePaid / subTotal;
1194
+ const discountItem = item.pricePaid - couponDiscount * totalItemPercentage;
1195
1195
  return {
1196
1196
  ...item,
1197
1197
  discount: discountItem,