Batches

The batches table is a child of saleable products.

It also has a 1 to many relationship with seedlots

It is used to store information about ‘batches’, a batch is a set of packets/ labels which are made together for a particular product from a particular seedlot.

Batches are created by users via the packets dashboard. Doing this will also created a matching assembly record, which users will then use to assemble the batch.

Along with interfacing with batches via the assembly and packets dashboards, user will interface with them via the shipments/shipment lines tables when they are allocating lines to batches.

The table also stores the print views used to generate small packet/ bulk label designs. These are used when printing the packets/ labels.

In terms of the main fields/ buttons shown

Then, the views conditionally shown depending on the value of the show view choice field

Finally within the admin section (visible only if isAdminMode() is true)