There are several events during the life of flocks and the barns they are placed in and we need a way to schedule these events.
Table of Contents
Configuration
System → Settings → System Types
The scheduling solution will come with a list of system types. These types are:
- Placement
- Molt
- Kill
- Depopulation
These are system defined, because in upcoming sprints we will add fields, validations and functions that are specific to these types of scheduled items. For instance, unlike other items, placements may need to be committed as estimated or actual placements, or assigned to an existing placement.
Like other system types, we'll have the ability to change their codes and descriptions.
We'll also have the ability to define our own scheduled types. For anything that we will want to track that will require only the basic functionality of any schedule item we can create a custom item for that.
Like all system types, scheduler types includes the ability to set affiliated divisions and industry types. we could not find a reliable way to implement this, so at present it is not utilized by the scheduler screens.
Security
System Navigation → Users → Manage Users
There is a new security category for scheduling. Form here, we'll have the ability to configure whether user have access to the scheduler, or the custom attributes screen.
Custom Schedule Attributes
Scheduling → Configuration → Custom Attributes
This feature works the same as flock attributes. From here, we'll select a schedule type that we defined from the system types screen. This will load a list of custom types defined for the item. From here, we can add and manage user-defined fields that will appear for every schedule item. Form this screen, we can
- Add: Create a new custom attribute for this type.
- Edit: Manage the selected attribute.
- Save: Save all changes made since the form was loaded.
- Close: Close the form.
Custom attributes are distinct to the type- we cannot set up one that will be shared for several types.
At present, the control allows the creation of string and bool types. There is code in the background to eventually add numbers, decimals and dates. When we schedule this development for system type attributes it will also add these to flock attributes, as they use the same code.
Here's a look at the edit screen from here, we can define the custom field. We can determine what order we want it to appear in the list.
We can also disable a custom attribute This will not delete the attribute or any of it's data from the database. If an attribute is disabled it can be enabled again without the loss of any selected data.