You can reserve inventory for a sales line with a specific inventory dimension like a batch number in this case. You can use this piece of code to automatically save some steps if required by some customization....