Skip to content
This repository was archived by the owner on Mar 10, 2018. It is now read-only.
This repository was archived by the owner on Mar 10, 2018. It is now read-only.

Coupon redemption limit = 0 doesn't work #16

@phthhieu

Description

@phthhieu
  1. I create a coupon with Redemption Limit = 0 (so the number of time usage should be ∞)
  2. Then I use this coupon by this code:
    Coupons.redeem(coupon, amount: total_amount_dollars)
  3. From now, if I check coupon with:
    Coupons.apply(coupon, amount: total_amount_dollars)

Real result: The discount amount will be returned 0 in step 3
Expectation: it shouldn't be 0, because Redemption Limit = 0

Could you guys help on this? Thanks so much

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions