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.

removing from inventory after import

Featured Replies

is there a name for the process of removing items from inventory after you import them. how would you do that? i have one form of customers and what they ordered and another one with my inventory, how would i remove the item from inventory based on the sku during the import process? on the inventory form it has 2 fields one for called "in" and one called "out".

It depends how your files are set up.

If you are selling one of a kind products like art or antiques, then it makes sense to have one record for every item in stock. In that case, I would be inclined to simply have a 'Sold' field that could indicate that the product is sold, rather than delete the record. That way you will always have a permanent record of your products.

But if you are selling items that you will be restocking, then you probably want to have a quantity field in the inventory file that you can increment or decrement according to your restocking and sales.

Both of the above can be done by by scripting, but the exact script will depend on your setup.

  • 3 weeks later...
  • Author

i am selling books and i do not have qty s each product is a different sku number.

i have one db "inventory" with item fields and another one with customer info.

the main fields in the inventory db are "sku" "title" and "status". the status field has 3 options, "for sale" "hold" or "sold"

the customer db will have customer info of course and some inventory fields like sku and title.

i want to import an excel file that has customer info and the item they ordered into the customer db . after the import into the customer db it will change the status of the item in the inventory db based on sku to "sold"

how would i do that?

Create a relationship called "InventoryFile" from the customer file to the inventory file based on the sku field. Then, you can execute a script in the customer file that does the following:

Import [the excel file]

# After the import, the found set will be all the new customer

# order records. So you now need to loop through them and

# set the related inventory record to "sold"

Go to Record/Request [first]

Loop

  • Author

thanks a lot, i thought it was going to be that easy.

what if i was entering an order manually. i would create a new record, type in the sku, title, etc. how would i get it to automatically change the status.

would it make sense to have a print button that i would only use if i were manually typing in an order, and that button would print an invoice and mark the item sold?

Yes you could do it in your print script. Just add this step to the script:

Set Field [inventoryFile::status, "sold"]

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.