Provide membership discount when volunteer redeemable hours run out during a transaction.
Apply either the membership discount or volunteer redeemable hours depending on which would provide greater savings.
If a patron just has a small amount of redeemable hours left and the membership savings are greater, that would make the best sense. Patron can always apply smaller amount at a later time for a small purchase.
Example: $1,000 purchase with 19 unused hours, 12.5 not used (conf: 8 x 12.5 = $100)
both in sequence = ((1000 - 113) x .10) 88.70 + 113 = $201.70 savings
There are two ways of approaching this bug:
If a patron just has a small amount of redeemable hours left and the membership savings are greater, that would make the best sense. Patron can always apply smaller amount at a later time for a small purchase.
Example: $1,000 purchase with 19 unused hours, 12.5 not used (conf: 8 x 12.5 = $100)
Example: $1,000 purchase with 19 unused hours, 12.5 used (conf: 8 x 12.5 = $100)
1 is the best choice because it encourages both membership purchase and volunteering!