Lay Flocks
Business Rules
-
When setting the Target Quantity on a Lay Flock, the quantity assigned must
be <= to the Lay Barn Capacity. The Target Quantity is the desired number
of birds in the flock. This quantity cannot exceed the Lay Barn capacity.
We do not simply use the Lay Barn capacity because sometimes there are reasons
why a flock size less than barn capacity is desired. This is a hard
constraint; nobody can override it.
-
"Birds Housed" is the actual number of birds that went into the barn. This
is calculated by adding up all the catch counts for allocations/moves that
went into the Lay Flock, minus all the flock move adjustments.
-
There is a dashboard that allows you to see instances where there ended up
being more birds housed than the Lay Barn Capacity.
-
When a Lay Flock is created, the Lay Barn Bird Capacity is stored
to LayFlocks.iBarnBirdCapacity. This is done to ensure that we have a
snapshot of that value at the moment in time when the Lay Flock is created,
because this value could change on the Lay Barn, and we need to enforce the
Barn Bird Capacity that was in effect at that time. If you change the Lay Barn
that the Lay Flock is assigned to, this value will also be updated.
Birds Housed
The number of birds housed is not entered directly by a user. It is computed real-time
by adding up all of the Pullet Flock Moves to the Lay Flock, and subtracting all of
the Move Count Adjustments.
Actual Housing Date
The Actual Housing date is not entered directly by a user. It is computed real-time
by getting the first Load Date from the Pullet Flock Moves for this Lay Flock.