bhima
bhima copied to clipboard
Need a way to create a lot barcode during lot entry
When doing Stock Entry, once the inventory item is selected and you got to the Lot entry modal, there should be a way to create a new barcode for the LOT/BATCH name field that creates a UUID for the lot and generates and inserts the barcode for that UUID into the LOT/BATCH field.
When the lot entry modal form is submitted, the lot uuids should be saved and used to create the new lots. Note that this only applies to new lots to the system (integration, donation, purchase), not transfers since a transferred lot already has a UUID and corresponding barcode.
It seems to me that we also need a way to format/print the barcodes on a barcode printer. So we need to think about whether that is a POS document or if the format for printing a barcode should be adapted for a barcode printer.
Note that the action menu for lots in the Stock Lots registry includes a "Barcode" option that displays the barcode for scanning or printing. However, we may need a second entry that is "Print Barcode" that will format the barcode for the barcode printer and print it. This probably implies a similar (but separate document/receipt) with adapted formatting.