Purchase Receipt Requires Serial Number Although Item Has Only Batch Number

When creating a purchase receipt, the system automatically takes the batch number.
The item only has a batch number and no serial number.
However, during submission, the system requires both a batch number and a serial number.

What can I change or configure so that the submission works without a serial number?

Stock → Item → Inventory → Serial Nos and Batches → untick “Has Serial No”

Thank you for the reply. the problem is, that the item has no Serial No. The box was always unticked

Then maybe its a bug.
You may need to report it on GitHub · Where software is built