From: Aliza P. <ali...@gm...> - 2010-03-05 21:52:40
|
On Fri, Mar 5, 2010 at 1:47 PM, brett lentz <bre...@gm...> wrote: >> > > There are two distinct use-cases here: > > 1. I sell a share, then realize I meant to sell multiple shares as a > single sale, and so I sell more shares. Result: This should be > counted as a single sale, with a single drop in stock value for the > whole sale transaction. You click "undo" and then sell them all as a single transaction. (Alternatively, Rails could generically prohibit selling shares one-at-a-time, since all games I'm aware of that discuss the topic explicitly disallow it.) > > 2. I deliberately want to trash the stock price of a company by > selling multiple shares as individual transactions. Result: This > should be counted as multiple sales transactions, and drop the stock > value for each sale transaction. > > I'm not sure there's a good code-based way for Rails to distinguish #1 > from #2 without additional information. > > Personally, I'm totally okay with saying that the correct way to > execute #1 is to click Undo, and re-do your single sale as intended. > This means that Rails should treat all sales as individual > transactions, and so achieving #2 is as easy as "Sell 1... then Sell > 1.... then Sell 1..." Yes. > > ---Brett. > |