Automatic Batch Creation Is Not Working

Using V8.0.45…automatic batch creation is not working on Purchase Invoice with Update Stock, but works well on Stock Entry.

just updated to latest version…it still persists

Please create a github issue, https://github.com/frappe/erpnext/issues/new