Relocation Expense Transfer - Cap Remaining
Introduction
The expense transfer process can transfer portions of the cap balance of a layer flock to another destination flock. Although it is exceptional, this type of transfer is necessary in instances of catastrophic failure on the layer house. Birds would need to be relocated, and with them, a portion of their value.
Configuration
Unlike the expense transfer process, you will not need to configure a Transfer Configuration. The source flock will need to have capitalized expenses, which require capitalization configurations. To configure capitalization you will need to create cap codes, and setup the source flock's capitalization settings on the "Production" tab of the flock form.
Getting Started
Once you have configured the system, you will need to create a transfer out record on the source layer flock. Once you select a flock, The transfer out grid is located at: Live Inventory Options -> Live Inventory Trans -> Transfer Out. Create the transfer, specify a transfer date and number of head. Specify a destination layer flock and house. To transfer a portion of the cap balance, check the "Trans Cap" field.
The transaction form used to trigger an error if the user selected both the expense transfer and trans cap option. This validation has been removed, and replaced with logic that will prioritize the transfer of cap amounts over the transfer of expenses. If any one transfer out has the "Transfer Cap" box checked the cap balance, then all "Transfer Expense" selections will be disregarded and the transfer cap process executes for the flock- you cannot execute both on the same flock.
The Process
The process uses the exact same logic as the expense transfer process, only instead of transferring a portion of expenses it transfers a portion of each depopulation cap adjustment.
The process gets information about the source (transferring) flock (Code, Accounting Close Date).
Next, it will get all transfers out for the flock, filtering out all transfers without the "Transfer Cap" option checked.
Create a transfer audit table.
This table is returned at the end of the process, and can be reviewed on the reconciliation form.
Calculate capitalization totals for the source flock.
Calculate the depreciation schedule for the source flock.
Find all "Depop/T-Out" depreciation records.
These records represent an adjustment of the cap balance based on all head depopulated for the period (week or day).
For each of these records.
Create an audit record.
Get all transfers:
For this house.
For this period.
With the "Trans Cap" column checked.
Whose destination flock has a valid cap code.
Get the absolute value of all "Head Added" values for all depreciation adjustments on this date.
Since birds were depopulated, and these records are not considered "Mortality Loss", this value appears as a negative number on the depreciation schedule.
This is the total number of head transferred for the adjustment, for all placements.
For each transfer out:
Calculate percent to apply.
Calculate the amount to apply.
Create a cap adjustment record for the destination flock.
Update the adjustment record for this expense.
Balance Pennies.
Because we are multiplying values with a precision of 4 decimal places, it is likely that we will gain or lose pennies along the way. If we are off by pennies, this function will apply them to the last record created until the totals balance with the amount adjusted from the depreciation schedule.
Create Cap Adjustments on the destination flocks.
Save the cap adjustment records to the destination flocks.
Cap adjustment records are created on the "Manual Expense" tab of the flock expense form.
For this first iteration, the process can only create Cap adjustment records for the starting cap code.
Records can be created behind the accounting close date- their adjusted amount will be applied to the earliest calculated amount of the depreciation schedule.
Calculate Amount Per Head.
This value is calculated for the reconciliation form.
Reconciliation
The reconciliation form will open and execute the expense transfer process.
The form will list all transfer out records with the "Trans Cap" field checked.
Rather than list all applicable expenses and for the flock, the form will list all depreciation adjustments caused by depopulation loss.
Each transfer that received a portion of an expense will be listed by transfer id on the column of the grid.
If 100 % of the transfers have their trans cap field checked, then each adjustment will have a difference of zero.
If there are not as many transfers configured to "Trans Cap" as there are head depopulated there may be a difference.
Expense Transfer capitalization does not create a column for birds remaining, like the expense transfer process. Transferring out birds mid-cycle is exceptional- the system doesn't have a count for how many birds may be depopulated.