“Forty cases per pallet” tells dispatch when a pallet is full. It does not tell a palletiser where to put case number nine. For that, define each layer and the order of the layers. Check the arithmetic against the loaded pallet the customer can actually ship.
Draw the layers in plan view
For an illustrative pattern, four layers of eight cases give 32 cases. If a fifth layer contains only six, the total becomes 38. Number the positions on that last layer rather than leaving two blanks somewhere in the drawing. Show the leading face of each carton and mark any labels that must remain visible for warehouse scanning.

Test the last pick
Run the proposed final layer with representative filled cases and the correct pallet. Check support under the partial layer, clearance for the gripper to withdraw and how the next station recognises completion. Have the customer approve stability for the intended handling route. Keep the layer drawing, order quantity and trial pallet photo under one recipe revision.
How do you audit a mixed shift?
For each pallet, record the recipe revision and whether it was full or partial. Multiply complete pallets by the approved recipe count and add the cases actually present on partial pallets. If a partial pallet moves to another shift, record its identity before closing the shift count.
