olimart/moreflowers2 — Issue #16: Orders
Author: olimart
Created: 2011-12-22 23:43:45+00:00
State: open
Labels: P2

Orders
This is a new model corresponding to a sale to be delivered in the future. Same process than sales: order belongs to client and client has many orders.
Orders are to be delivered at a future date. For example I want to receive 10 flowers A color B on March 31.
We then need to track who ordered what, and when it is needed by. Each combination of flower and color correspond to a unique order since you may place an order for next week and one for next month at same time. We also need to track order preparation internally through status change (quick and easy with 1 click). Statuses include [pending, prepared and delivered]. We also need to build new view to track orders for people preparing orders. What are the most urgent orders, what are the orders for next week, which one are late, how many orderand so on.

We also need to aggregate all orders and sales per client to get a full history. what is important is to know how many flowers A color B have been sold, no matter it was through a sale or order.

Last but not least piece is preparing orders from the moment they receive flowers. This impacts quite a bit the current process. For example you're supposed to receive 100 product A that you need to dispatch right away, so 10 goes to order #123, 25 goes to order #223. After that you affect 50 to storage Z and 12 to storage Y. In this case it means there are 3 missing. We also need to track this information.

Maybe we will need to have a 2-step process on receive_items to separate to process orders first then receive items to storages.