Save the date! Join us on October 16 for our Product Ops launch event. Register here.
Jun 29, 2019 09:25 AM
i am using the main Table (client List) where I add my client then I use lookup (in client list) to find the Invoice number in another Table Called “Master Inventory”
My question is How to find the count? with the following conditions
if nothing is available in “SOLD TO” return the original “Store Inventory”
Can you guys help me
Jun 29, 2019 10:06 AM
You’ll first want to add a Count Field (one of the options in the field type dropdown) that counts the number of records in {SOLD TO}, then use that in formula instead. Let’s say you call it {Sold To Count}. Use the following formula:
IF({SOLD TO}, {Store Inventory} - {Sold To Count}, {Store Inventory})
You didn’t ask, but for some unsolicited advice… :slightly_smiling_face: I would consider adding at least one more table to your base. If you create an [Items] table, you could then link your [Invoices] table to it, and use rollups to more easily track the quantity of each item in stock. You could also use lookup fields to save time in retyping item names, descriptions, prices, etc.
Additionally, if you ever have a situation where you need to put more than one item on an invoice, I would also add a [Line Items] table to hold each line item on each invoice. This also facilitates selling multiple items with different quantities for each.
The below example base shows what I’m talking about :slightly_smiling_face:
Jun 29, 2019 10:39 AM
Perfect @AlliAlosa : It’s working… thank you.
Appreciate your suggestions i already created the Different table for invoices and using lookup for invoice.
Thanks again