POS System ( Sales,Income,Expenses,Stock,Supply)
Hello,
I have been working on a POS System all created in Ninox,
What I'm trying is that when the sale of 1 product happens (Sales Table) the product is deducted from the Stock table and money added to the Income table.
When I buy from the Supplier the number of products is added to the Stock Table and the money is discounted in the Expense table
Would appreciate the help a lot!
30 replies
-
Hello Bruno,
I'm not sure what your question is. Is it "What do I have to do, to create follow-up actions?" ?
It would help to see your Sales Table and to now how you realise a sale. Is there a button, do you create a new sales entry "by hand", ...?
Please tell more about the sales mechanism and then I can tell you how to create follow-up actions.
-
Sound like you create a record in your Purchases/Supply table and you want the Stock table to aggregate data from Purchases/Supply. I'm guessing that you have a reference field in Purchases/Supply to Stock. If not then how are the two tables related?
-
Can we see an image of your data model please.
-
In the Stock table why not have three fields. A ‘Stock In’ field that increases every time you buy new stock from the supplier, a formula field that calculates the Stock Sold by counting the products sold in the Sales table, and another formula field to show ‘Remaining Stock’ by using the formula ‘Stock In’-‘Stock Sold’ Then every time you sell something the Stock table is automatically updated. Use a formula field in the Income table in the same way by calculating the value (sum) of existing sales from the Sales table.
-
This is where the use of reference fields come in. We don't know the names of those fields so you will have to adjust the following formulas.
For StockIn (I use mashed up words so I don't have to use single quotes in formulas) it could look like:
cnt('Purchases/Supply')
Yes it is that simple. This is assuming you made a reference field in the Purchases/Supply table to the Stock table and kept the default names. In Ninox you always make the relationship on the many side.
Thinking out loud, it looks like you might want to link Sales to Purchases/Supply as I would think you want to know which specific item you sold not just an article. For example you need to know you sold a specific iPhone 12 to a customer not that you sold an iPhone 12.
If you don't care which specific article is sold and you have a reference field to Stock then you can do something like:
cnt(Stock)
If you do create a link to Purchases/Supply from Sales then it would change to:
cnt('Purchases/Supply'.Sales)
-
Fred Paul Chappell I have created the database for the income expenses and reports all that, from ninox inventory template I have edited it and have a well-working inventory, How I can link these 2 together? as databases it's not possible so I exported the tables of income expenses as .csv files and imported them to my inventory database, here I'm struggling to link them together, would be great if someone would help me with this
-
these 2 groups need to be linked, the 1st bracket inventory from template of ninox I have edited it and is working as I wish, the second bracket includes tables with incomes and expenses, I need to make automation of these tables so that when I sell something the product is -1 from stock for example and money being added as income, in the other hand when I purchase from my supplier the product +1 and the money taken as expense.
I hope I'm clear, I really appreciate all your feedback :)
-
We have given you some suggestions with the stock issue. Have you tried any of the suggestions?
If this is a test DB, can you upload a copy of the DB to this post so we can take a look at it?
-
Tried to do the suggestions, Was not able to make it work
-
my bad
-
I haven’t yet looked at your DB, but why do you need Income and Expense tables? Your Sales already contain the value of each sale and Purchase presumably contains the cost to buy products. So you just need views of Sales and Purchases with the total of the relevant columns to give you income and expense values. No need for extra tables.
-
Looking at your DB, it seems like you have done a good job with the stock part. Your 'Inventory Herne', 'Inventory Bergkamen', and 'Inventory Beckum' all do what you want. It shows you the current stock of articles based on each where you bought them from and subtracts the number of articles sold. So I'm not sure what you need done here. In fact you are using the power of the reference fields to gather the data and NOT doing select statements. Good Job!
I'm not sure what you want to do with your Income tables. You have a date field and a yearmonth field. Can you expand on what you are thinking here?
Content aside
- 5 mths agoLast active
- 30Replies
- 721Views
-
7
Following