Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django Barcode for store sales

Tags:

python

django

vb6

I am in process of converting Visual Basic app into Python Django. Currently, it has barcode functionality to process sales at a store. Can this be achieved with python django.

like image 311
bobsr Avatar asked May 22 '10 05:05

bobsr


People also ask

How do I generate a barcode for my inventory?

To create a barcodeSelect the barcode type: EAN-13, UPC-A, Code 39, or ITF. Fill in the product category information in the barcode data box. Click on the barcode title box and barcode note if you want to add them in the barcode. Add a name for the barcode in the title box and more details in the note box.

Do you have to pay for barcodes?

By using a UPC barcode, you're bound to certain standards, and you must pay to procure your barcodes. GS1 offers different payment tiers based on the number of product barcodes you need. Once you determine how many barcodes you need, you can buy a certain amount of barcodes and receive a company prefix.


1 Answers

If your definition of barcode functionality is the ability to read and write barcodes, you should keep in mind two things.

  1. Barcodes are actually read by barcode readers, and from the computers' point of view they are just input devices, just like keyboards. When the reader reads a barcode, it just "types" it in, character by character. Usually it's configurable what the reader sends after the code, tab or enter are quite common options. Enter is the easiest to deal with.
  2. There's nothing special in writing barcodes, it's just text with a special font, with *-characters before and after the code.

Handling barcodes doesn't really have much to do with Django. Some tricks are required to get it done within browsers, but these would apply if you were doing it in RoR, .net or whatever:

  • Handling barcodes from a web app is quite straightforward. A text input is needed and a bit of javascript to make sure the input has focus, and to trigger action when a barcode has been read.
  • Printing barcodes is not very hard either, just use css3 embedded fonts. If that's too cutting edge, you can always create images of the barcodes server-side, and it'll work with any browser.
like image 87
af. Avatar answered Sep 30 '22 04:09

af.