sendchinatownlove / sendchinatownlove.github.io

Send Chinatown Love
https://sendchinatownlove.com
11 stars 17 forks source link

Email Receipt Issue #173

Closed solidiquis closed 4 years ago

solidiquis commented 4 years ago

The bug is that for “Gift A Meal” purchases, it breaks up the gift card purchase into a whole bunch of little gift cards attributed to a third party distributor and then sends a “thank you for your donation!” receipt to the purchaser but since the receipt sending is in the for loop that breaks up the gift cards, it ends up sending a whole bunch of tiny donation receipts to the purchaser.

So if you buuy 5 meals for $25 (at $5 a meal), you’ll get 5 receipts for $5 each.

solidiquis commented 4 years ago

Confirmed funky behavior via RSPEC. Should be an easy fix.

Screen Shot 2020-05-31 at 4 36 54 PM