Jump to content
Server Maintenance This Week. ×

Viewing In Stock Items


This topic is 5793 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello, this may seem odd but I have a inventory table and an inventorySOLD table.

We enter stuff that comes in into the inventory table and the stuff we sell on the inventorySOLD table. They are pretty much Identical tables, so I want to create a custom find that will find all records in the inventory table that are not the same as the records in the inventorySOLD table. So it would look something like this

Click a button

Perform a script

Script would find anything not equal in the Inventory::Serial Number and InventorySOLD::Serial Number

Seems confusing, but it would allow us to see what we have in stock, because anything not equal would still be in our inventory and anything equal would mean it was sold.

Any help would be appreciated. Thanks - Jeff

Link to comment
Share on other sites

You could have a calc in your Inventory table, flag_Sold = if (not isempty( Inventory to ItemsSold_byItemID::itemID), 1, 0).

This basically checks for any records in the Sold table.

However, a more typical data model consists of Products, Receipts/Adjustments, PartsSold. Then calc Qty on Hand thru relationships from Products. That is, Qty on Hand = Receipts - PartsSold.

Link to comment
Share on other sites

This topic is 5793 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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