Unable to Save POS Invoices: Error Please select Batch No

Whenever I try to save a POS invoice, I encounter an error message stating “Please select batch” even though I have already selected a batch for the items in the invoice.

I have double-checked the batch selection for each item, and I’m certain that a batch has been assigned.

I’m using the latest version of ERPNext (* develop branch)