Inventory Action Schedule
Add a new page to the Inventory section /i/schedule titled Schedule. This will display an overview of InventoryAction
records.
Actions in GG-CE are either:
- Completed
- In progress, or
- Pending (including grin-global-server#227 (closed))
The overview is based on user-selected time period: one day (today, yesterday, tomorrow, pick a date), one week (this week, last week, pick a week), one month (this month, last month, pick a month), one year (this year, last year, pick a year). This sets the date range for querying GG-CE: { fromInclusive: DATE1, toExclusive: DATE2 }
.
We are interested in the following categories:
- Actions completed in the selected period
- Actions in progress in the selected period
- Actions scheduled in the selected period
- New actions added in the selected period
- Overdue actions in the period
The API call to actionSchedule(...)
in grin-global-server#229 (closed) returns for the specified period the following response:
{
"completed": {
"VIABILITY_TEST": 30,
"actionNameCode2": 30,
"actionNameCode4": 10,
},
"inProgress": { "VIABILITY_TEST": 4, "actionNameCode2": 4, ... },
"scheduled": { ... },
"added": { ... },
"overdue": { ... }
}
Schedule UI
The filter allows the user to select the time period. By default This month is pre-filled. The fist dropdown allows the user to conveniently set both dates with one selection.
The UI displays the summary information by actionNameCode
:
By clicking on the category (e.g. click on Completed 1 in Viability) the list of actions under that category is displayed (regular action list). The table of actions can be displayed directly under the chart (or in a dialog).
@mborodenko will inform you of the new API endpoints and what filtering options are available. I think that in addition to the date range the inventory/c/Filters
can be embedded.