spree_store_credit_payment_method icon indicating copy to clipboard operation
spree_store_credit_payment_method copied to clipboard

How do you actually expire store credits?

Open jasonfb opened this issue 10 years ago • 2 comments

I noticed that the implementation has expiring and non-expiring store credits, (implemented via the spree_store_credit_types table), but how do you actually mark a store credit as expired?

I was expecting to see an expires_at field on the store credits table but I see none. Am I missing something already implemented?

jasonfb avatar Apr 23 '15 14:04 jasonfb

@jasonfb that hasn't been implemented yet. We are currently just using it for accounting segmentation of when to count the store credits against liability (issuance for non-expiring, and usage for expiring). Your approach seems like a good one to me.

athal7 avatar Apr 24 '15 11:04 athal7

Interesting. So, just to clarify, in terms of company debt (liability), you count the non-expiring SC at the time you issue them, but don't take expiring store credits as a loss (business expense) until they actually used? Does this follow some sort of GAAP guidelines?

I'm asking because we just recently went over this with our accountants and were a little confused as to the best way to approach it.

As far implementing the actual expiration of the store credit itself in the code, I will see if we can put this on our roadmap and make a pull request against this Gem.

thanks.

jasonfb avatar Apr 24 '15 12:04 jasonfb