OPD--> prescribe a batchwise item and save the OPD.
Go to "Pharmacy queue listing"--> Item will be auto dispensed so Go to the "patient history "tab and search.
In the dispense tab, you will be able to see that item has been dispensed.

Now, Go to Stock Status--> Quantity is not reduced from the previous Qty.
Go to Stock transaction---> Dispense transaction is there.

Note:- Configuration for Auto dispense must be true.