Fixed: Barcode scanning returned an error for batches created on the same day.
Fixed: If the barcode scan failed, the application would become unstable, requiring a refresh.