Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Calculating a barcode entry

Featured Replies

  • Newbies

I am trying to set up a simple inventory control list using a barcode reader.

I can

Hi Mike and welcome to the forum,

MikeQ said:

.... if it is a new item place it in a new field.

Suppose you mean a new record as opposed to a new field?

Anyway, you could achieve this quite easily by entering the scanned value in a global field.

If the scanned value in the global field equals the scanned value in the current record then add one to your 'amount' field, otherwise create a new record, enter the global value in the appropriate field and set the amount to one.

Hope this helps,

Ernst.

Ernst:

I think you skipped a step. Read the barcode scan into a global field, then do a find in the barcode field using the same data. If no record is found, create a new record and put the data from the global field into the barcode field. If a record is found, increment quantity by one.

The idea being that you can't assume the user is already in the correct record.

-Stanley

stanley said:

The idea being that you can't assume the user is already in the correct record.

Hi Stanley,

If the scanned article is the same as the previous article then the user *should* already be in the correct record, because that record was created when the previous article was scanned.

But if Mike also wants to accumulate the count for each article when a user first scans article A, then article B and then A again, then you a totally right.

Then a lookup (or a find) should be performed with a concatenation of the scanned value (article code) and something like an invoice number.

Regards,

Ernst.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.