Automatic batch numbering with FIFO

What is happening with this? I run in the exact same problem here : Delivery note Packing slip for Product bundle item : batch not fetching automatically