Solution for InventBatchId lookup forms filtering bug is attached below. (It is retrieved from Dynamics AX V4)