@osovitny/anatoly 3.19.28 → 3.19.29

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.
@@ -4356,6 +4356,9 @@ class PaymentsService {
4356
4356
  subtotal = subtotal - (subtotal * (this.discountPercentage / 100));
4357
4357
  subtotal = +subtotal.toFixed(2);
4358
4358
  }
4359
+ // Round to nearest whole number
4360
+ subtotal = Math.round(subtotal);
4361
+ // Ensure non-negative total
4359
4362
  return subtotal > 0 ? subtotal : 0;
4360
4363
  }
4361
4364
  //DiscountCode