{"issue":{"created_at":"2011-12-10T05:15:43Z","state":"open","updated_at":"2011-12-11T07:22:15Z","comments":1,"user":{"gravatar_id":"2e1bf75652e941e1e4859edd8355cfc0","id":547754,"url":"https://api.github.com/users/olimart","avatar_url":"https://secure.gravatar.com/avatar/2e1bf75652e941e1e4859edd8355cfc0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"olimart"},"body":"on /stocks/items_to_receive add between dates filter (From and To). All items to receive between 2 dates\r\n\r\nFor that you will need to a date for each product purchased. PurchaseItem already has expected_date I think we should add a new column to Stock to store this information. See PurchaseItem observer to see how stocks are created but I think we should pass that on here (unless you have something to propose. Feel free).\r\n\r\nWhen we get this information we need to group and sort stocks to receive by week. \r\n\r\n* Week from XX to XX\r\n   * variation.name | supplier.name | in_stock\r\n* Week from XX to XX\r\n   * variation.name | supplier.name | in_stock\r\n   * variation.name | supplier.name | in_stock\r\n...","assignee":{"gravatar_id":"ba41db5b775dd0d0cb8fd6ea4e596b7a","id":62233,"url":"https://api.github.com/users/hoangnghiem","avatar_url":"https://secure.gravatar.com/avatar/ba41db5b775dd0d0cb8fd6ea4e596b7a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"hoangnghiem"},"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"id":2509882,"number":3,"labels":[],"title":"add date filter on stocks to receive","html_url":"https://github.com/olimart/moreflowers2/issues/3","closed_at":null,"url":"https://api.github.com/repos/olimart/moreflowers2/issues/3","milestone":null},"action":"created","comment":{"created_at":"2011-12-11T07:22:15Z","updated_at":"2011-12-11T07:22:15Z","user":{"gravatar_id":"ba41db5b775dd0d0cb8fd6ea4e596b7a","id":62233,"url":"https://api.github.com/users/hoangnghiem","avatar_url":"https://secure.gravatar.com/avatar/ba41db5b775dd0d0cb8fd6ea4e596b7a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"hoangnghiem"},"body":"I added a new column expected_date to stocks table to store expected_date of PurchaseItem. I'm not sure about stock display for this page, so I hold the current display of item receive, added date filter and group by week. Please let me know if you have further comment about displaying item receive.","id":3096019,"url":"https://api.github.com/repos/olimart/moreflowers2/issues/comments/3096019"}}