===== Rebagging Material =====
{{entry>0;Rebagging Material;-}}
The [[cats:features:production:production|production module]] allows you to "rebag" inventory so you can change the units and preserve the original contract information.
The production module must be enabled in system settings.
For this tutorial we are going to be rebagging some 60KG coffee into 5LB bags (to sell at retail).
[{{:cats:procedures:production:rebagging_originalcontract.png?direct&800|The original material shows 500 60KG bags.}}]
====Rebagging a Location Screen====
Navigate to the location screen to be rebagged.
Next, select **Sub** > **Rebag** from the location screen.
==== Rebagging a Purchase Item ====
To begin, go into the purchase item screen and select **Prod** from the menu.
[{{:cats:procedures:production:rebagging_production_menu_item.png?nolink|Select Prod from the menu.}}]
This will bring up the rebagging dialog.
[{{:cats:procedures:production:rebagging_dialog.png?nolink|The rebagging dialog.}}]
By default CATS selects all the unallocated traffic screens for the current purchase item. You can pick which location screens to use for the rebagging by clicking on the **Select Screens** link. Our purchase only has a single location screen so we can continue to the next step.
In the **Output** area we enter the grade of the new material. Use the **Description** field to enter the identifier for the new item. In our case, we're not changing the grade, merely putting it in a different kind of bag. So we enter the original grade and add the optional identifier "5LB" to differentiate this item.
Next we enter the output yield. For our example, we expect no consequential spillage in the process of converting from 60KG bags to 5LB bags. So we leave the yield as 100%. CATS will calculate the output weight using the specified yield. If you want to enter the exact weight of the output, uncheck the box labeled **Enter amount as percentage yield.**
Check the box labeled **Specify unit weight** to use a unit weight other than the one defined on the grade code. In our case that's exactly what we want to do. We set the unit weight to 5LB.
The rebagging dialog can also be used to generate a regular production as well. Just uncheck the box labeled **Attach output to this contract** and enter the production contract to target.
Now we are ready to finish the process. We can see that the rebagging process will result in 15,211 bags of 5LBs each. Click on **Apply** to save the changes and create the new "rebagged" item.
The purchase item screen will update to reflect the fact that it is being used in a production. Click on the **Out** link in the purchase item header to view the newly created production batch.
[{{:cats:procedures:production:rebagging_production_item.png?direct&800|The production batch shows the details of the rebagging operation.}}]
Because the rebagging operation is done as a production batch, you can use the production entry to adjust the rebagging operation at any time. E.g. if the rebagging operation results in a different yield or if not all of the input material is used.
Returning to the original contract we can see that our new item has been created.
[{{:cats:procedures:production:rebagging_updated_contract.png?direct&800|The contract screen shows the newly created item.}}]
The original 500 bags is marked as //Booked// and is out of inventory. Our newly generated 15,211 bags are marked as //Charged// and in inventory. We can immediately begin selling those 5LB bags.
If we view the newly created contract item we can see that it is the result of a production batch.
[{{:cats:procedures:production:rebagging_output_item.png?nolink|The output item showing a link to the production batch.}}]
{{tag>production}}{{tag>"rebag material"}}