Menu

Barcodes again

Help
2016-03-18
2016-03-19
  • Vitalii Timokhin

    Hello everyone!

    I need some help with EAN-13 barcodes. Thing is I can't really get what am I doing wrong. I read a LOT of topics here related to this subject and still couldn't find the thing i need. Maybe someone can help me with it.

    So, what I generally need is following:

    Tell me what exactly do I have to insert into "Barcode" string during adding goods to stock so that it would be possible to read it afterwards as weighted value using barcode scanner. And please don't refer to EAN-13 documentation, i've read it all multiple times and i know exactly how it works. What i don't know is what should I insert in Unicenta to make it work because anything I tried so far failed.

    Here's what I have been trying: added something with 5-digit barcode (00001), assigned price, etc. Then tried to insert into main window the following barcode: 2300001022000, where (according to EAN-13 documentation) 23 is weighted value, 00001 is product code, 02200 is a price (22 as I inserted it when added product to database) and 0 is calculated checksum. I also tried to check things like "scale" and "vatiable price product" but it didn't change anything.

    Please tell me if I got something wrong because this doesn't seem to work for me.

     
  • Vitalii Timokhin

    Ah yes, forgot to mention, I'm using the last version of program (3.91.3)

     
  • Vitalii Timokhin

    Yet again nobody appears to be able to help me. Oh well, i found where i was wrong. Thing is, i was trying to enter barcode values from keyboard or virtual keyboard in unicenta, whereas it is supposed to be done using barcode scanner only. For some reason unicenta does not recognize the same values typed on keyboard to simulate barcode. It is rather unobvious, i've never seen it documented anywhere.

     
    • Andrew

      Andrew - 2016-03-19

      I'm glad you found your way. I too have had to spend hours trying different things to achieve what I was looking for (not this issue). Unfortunately, free open source comes with potential for free assistance or entirely nothing, which can be understandable. We've got each other primarily, and we're lucky if the more advanced developers or users chime in with assistance.
      Just a note, if you're using Windows and want to test barcodes without a scanner you can use AutoHotKey to send a copied barcode with a carriage return (emulates a barcode scanner)
      .
      Here's an example:

      #NoEnv  ;[Recommended for performance and compatibility with future AutoHotkey releases.]
      #Warn  ;[Enable warnings to assist with detecting common errors.]
      #Persistent  ;[Keep this running until the user closes it.]
      #SingleInstance, Force  ;[Try to only have one version running, otherwise you might end up with many ahk icons.]
      SetWorkingDir, %A_ScriptDir%  ;[Ensures a consistent starting directory.]
      SendMode, Input  ;[Recommended for new scripts due to its superior speed and reliability.]
      SetTitleMatchMode, 3  ;[3 = A window's title must exactly match WinTitle to be a match.]
      SetDefaultMouseSpeed, 0  ;[The speed to move the mouse in the range 0 (fastest) to 100 (slowest).]
      
      !V::  ;[Alt+V: Simulate keystrokes of your clipboard's copied text.]
          loop, parse, clipboard, `n, `r
          countlines := a_index
          StringLen, countchars, clipboard
          testformat := ""
          if countlines = 1
          {
              testformat += 1
          }
          else, if countlines > 1
          {
              MsgBox, , Direct Input Paste v2.4 Error, Direct Input Paste: Only one command line of text is allowed. [%countlines%]
          }
          if countchars <= 100
          {
              testformat += 1
          }
          else, if countchars > 100
          {
              MsgBox, , Direct Input Paste v2.4 Error, Direct Input Paste: Only 100 keystrokes allowed. [%countchars%]
          }
          IfEqual, testformat, 2, SendRaw, %clipboard%`r
              ; %clipboard%`r  ; [CR]
              ; %clipboard%`n  ; [LF]
              ; %clipboard%`r`n  ;[CRLF]
          {
              countlines := ""
              countchars := ""
              testformat := ""
          }
          return
      

      .
      Alt+V will trigger that hotkey.

      Andrew

       

Log in to post a comment.

MongoDB Logo MongoDB