Hi @tray2 Thank you! Here is a sample of a scenario with 3 forecasts. I only show the first 5 cases per forecast as it would take up a ton of space on here to show all 24 for each,
[
{
"id": 1,
"name": "Aggressive Scenario",
"description": null,
"user_id": 1,
"team_id": 1,
"created_at": "2021-05-28T03:41:56.000000Z",
"updated_at": "2021-05-28T03:41:56.000000Z",
"forecasts": [
{
"id": 1,
"user_id": 1,
"team_id": 1,
"recipe_id": 1,
"distributor_id": 1,
"scenario_id": 1,
"customer_id": 1,
"velocity": "10.00",
"store_count": 20,
"created_at": "2021-05-28T03:41:58.000000Z",
"updated_at": "2021-05-28T03:44:06.000000Z",
"cases": [
{
"id": 1,
"forecast_id": 1,
"cases": 12,
"month": "2021-01-01 00:00:00",
"created_at": "2021-05-28T03:41:58.000000Z",
"updated_at": "2021-05-28T03:41:58.000000Z"
},
{
"id": 2,
"forecast_id": 1,
"cases": 20,
"month": "2021-02-01 00:00:00",
"created_at": "2021-05-28T03:41:58.000000Z",
"updated_at": "2021-05-28T03:41:58.000000Z"
},
{
"id": 3,
"forecast_id": 1,
"cases": 19,
"month": "2021-03-01 00:00:00",
"created_at": "2021-05-28T03:41:58.000000Z",
"updated_at": "2021-05-28T03:41:58.000000Z"
},
{
"id": 4,
"forecast_id": 1,
"cases": 10,
"month": "2021-04-01 00:00:00",
"created_at": "2021-05-28T03:41:58.000000Z",
"updated_at": "2021-05-28T03:41:58.000000Z"
},
{
"id": 5,
"forecast_id": 1,
"cases": 13,
"month": "2021-05-01 00:00:00",
"created_at": "2021-05-28T03:41:58.000000Z",
"updated_at": "2021-05-28T03:41:58.000000Z"
},
////// remaining cases here up to 24
{},
],
"recipe": {
"id": 1,
"name": "Apple Pie",
"SKU": "appl",
"description": null,
"status": "d",
"team_id": 1,
"user_id": 1,
"product_line_id": null,
"created_at": "2021-05-28T03:40:42.000000Z",
"updated_at": "2021-05-28T03:40:42.000000Z",
"bom": {},
"ingredients": [],
"packaging": [],
"commercial": {},
"product_line": null
},
"customer": {
"id": 1,
"team_id": 1,
"channel": null,
"name": "Ralphs",
"slug": "ralphs",
"created_at": "2021-05-28T03:42:05.000000Z",
"updated_at": "2021-05-28T03:42:05.000000Z"
},
"distributor": {
"id": 1,
"team_id": 1,
"name": "Vanny's",
"slug": "vannys",
"created_at": "2021-05-28T03:42:18.000000Z",
"updated_at": "2021-05-28T03:42:18.000000Z"
}
},
{
"id": 2,
"user_id": 1,
"team_id": 1,
"recipe_id": 2,
"distributor_id": 2,
"scenario_id": 1,
"customer_id": 1,
"velocity": "20.00",
"store_count": 10,
"created_at": "2021-05-28T03:45:38.000000Z",
"updated_at": "2021-05-28T03:45:58.000000Z",
"cases": [
{
"id": 25,
"forecast_id": 2,
"cases": 3,
"month": "2021-01-01 00:00:00",
"created_at": "2021-05-28T03:45:38.000000Z",
"updated_at": "2021-05-28T03:45:38.000000Z"
},
{
"id": 26,
"forecast_id": 2,
"cases": 10,
"month": "2021-02-01 00:00:00",
"created_at": "2021-05-28T03:45:38.000000Z",
"updated_at": "2021-05-28T03:45:38.000000Z"
},
{
"id": 27,
"forecast_id": 2,
"cases": 20,
"month": "2021-03-01 00:00:00",
"created_at": "2021-05-28T03:45:38.000000Z",
"updated_at": "2021-05-28T03:45:38.000000Z"
},
{
"id": 28,
"forecast_id": 2,
"cases": 30,
"month": "2021-04-01 00:00:00",
"created_at": "2021-05-28T03:45:38.000000Z",
"updated_at": "2021-05-28T03:45:38.000000Z"
},
{
"id": 29,
"forecast_id": 2,
"cases": 5,
"month": "2021-05-01 00:00:00",
"created_at": "2021-05-28T03:45:38.000000Z",
"updated_at": "2021-05-28T03:45:38.000000Z"
},
{},
/////// remaining cases here up to 48
{},
],
"recipe": {
"id": 2,
"name": "Banana Pie",
"SKU": "bnanpie",
"description": null,
"status": "d",
"team_id": 1,
"user_id": 1,
"product_line_id": null,
"created_at": "2021-05-28T03:45:12.000000Z",
"updated_at": "2021-05-28T03:45:12.000000Z",
"bom": {},
"ingredients": [],
"packaging": [],
"commercial": {},
"product_line": null
},
"customer": {
"id": 1,
"team_id": 1,
"channel": null,
"name": "Ralphs",
"slug": "ralphs",
"created_at": "2021-05-28T03:42:05.000000Z",
"updated_at": "2021-05-28T03:42:05.000000Z"
},
"distributor": {
"id": 2,
"team_id": 1,
"name": "Telunds",
"slug": "telunds",
"created_at": "2021-05-28T03:45:48.000000Z",
"updated_at": "2021-05-28T03:45:48.000000Z"
}
},
{
"id": 3,
"user_id": 1,
"team_id": 1,
"recipe_id": 1,
"distributor_id": 2,
"scenario_id": 1,
"customer_id": 1,
"velocity": "30.00",
"store_count": 20,
"created_at": "2021-05-28T03:41:58.000000Z",
"updated_at": "2021-05-28T03:44:06.000000Z",
"cases": [
{
"id": 49,
"forecast_id": 3,
"cases": 12,
"month": "2021-01-01 00:00:00",
"created_at": "2021-05-28T03:41:58.000000Z",
"updated_at": "2021-05-28T03:41:58.000000Z"
},
{
"id": 50,
"forecast_id": 3,
"cases": 20,
"month": "2021-02-01 00:00:00",
"created_at": "2021-05-28T03:41:58.000000Z",
"updated_at": "2021-05-28T03:41:58.000000Z"
},
{
"id": 51,
"forecast_id": 2,
"cases": 19,
"month": "2021-03-01 00:00:00",
"created_at": "2021-05-28T03:41:58.000000Z",
"updated_at": "2021-05-28T03:41:58.000000Z"
},
{
"id": 52,
"forecast_id": 3,
"cases": 10,
"month": "2021-04-01 00:00:00",
"created_at": "2021-05-28T03:41:58.000000Z",
"updated_at": "2021-05-28T03:41:58.000000Z"
},
{
"id": 53,
"forecast_id": 3,
"cases": 13,
"month": "2021-05-01 00:00:00",
"created_at": "2021-05-28T03:41:58.000000Z",
"updated_at": "2021-05-28T03:41:58.000000Z"
},
{},
///// remaining cases
{},
],
"recipe": {
"id": 1,
"name": "Apple Pie",
"SKU": "appl",
"description": null,
"status": "d",
"team_id": 1,
"user_id": 1,
"product_line_id": null,
"created_at": "2021-05-28T03:40:42.000000Z",
"updated_at": "2021-05-28T03:40:42.000000Z",
"bom": {},
"ingredients": [],
"packaging": [],
"commercial": {},
"product_line": null
},
"customer": {
"id": 1,
"team_id": 1,
"channel": null,
"name": "Ralphs",
"slug": "ralphs",
"created_at": "2021-05-28T03:42:05.000000Z",
"updated_at": "2021-05-28T03:42:05.000000Z"
},
"distributor": {
"id": 2,
"team_id": 1,
"name": "Telunds",
"slug": "telunds",
"created_at": "2021-05-28T03:45:48.000000Z",
"updated_at": "2021-05-28T03:45:48.000000Z"
}
},
]
}
]