Pullet Flock Closing

Business Rules

In order to close a Pullet Flock the following conditions must be met.

  1. Catch Count > 0
  2. Current Quantity = 0
  3. The "Move Out Actual" date exists. This date is retrieved by verifying that all the flock moves for a given flock are closed, and then the last load date is used as the actual move out date.
  4. All Workorders are closed.
  5. All Pullet Flock Moves are completed.
  6. All Pullet Flock Weekly records are completed. Excess Weekly Records are removed. These are autogenerated records for weeks after the last load out date. The last weekly record must have the week ending date updated to match the last load out date from the Pullet Flock Moves / Allocations.
  7. Accounting is closed.

However, a SysAdmin is permitted to close a flock and bypass the above requirements. This is necessary to be able to close a flock that has been euthanized due to a positive SE test, for example.

Catch Count

The Catch Count field is not entered directly by a user. It is the total of all of the Catch Counts recorded on the Pullet Flock Moves for this flock.

Current Quantity

The Current Quantity is the number of birds that are expected to still be in the Pullet Barn. This is computed by subtracting all of the Pullet Flock Count Adjustments (on the weekly records) and subtracting all of the catch counts on the Move records from the total birds placed in the flock.

Move Out Actual Date

The Move Out Actual date is not entered directly by a user. It is computed real-time by getting the LAST Load Date from the Pullet Flock Moves, and will only be computed once ALL of the moves are completed. This is to ensure that the Move Out Actual date only represents the reality of what actually happened, not what is planned.