nijotz / thesourcecoffee

0 stars 0 forks source link

Invites/Rewards Stuff #4

Open qpfiffer opened 11 years ago

qpfiffer commented 11 years ago

When rolling out the email there should be a data migration to insert them.

Notes on the month-to-month thing: Introspect the interval between order fulfilment to figure out how many orders need to happen for a month to pass before a rewardee gets their order, as well as a full month of fulfilled orders (No pause trickery)

qpfiffer commented 11 years ago

Implementation for the month-to-month vs. 3Month/1Year behavior:

The order field on a reward can be nullable, which only happens when the customer that is to receive the reward is month-to-month. When an order is fulfilled for that customer, a check is made to see if the requisite amount of time has passed to allow them to get that order, in which case an order is created and the reward updated.

qpfiffer commented 11 years ago

I went with an actual template for the emails that just gets rendered when appropriate, rather than a site setting.

Heres how things stand: