When utilizing single-use coupons, the next object in RJS was miscalculating the tax, falling back on the now objects subtotal for calculations. This resulted in lower taxes for the next object.
Gating the logic of the next object's discountAmount behind whether coupon.single_use is being used ensures the next object's discount amount applies properly.
When utilizing single-use coupons, the
next
object in RJS was miscalculating the tax, falling back on thenow
objects subtotal for calculations. This resulted in lower taxes for thenext
object.Gating the logic of the
next
object'sdiscountAmount
behind whethercoupon.single_use
is being used ensures the next object's discount amount applies properly.