Click here to Skip to main content
15,889,176 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I need a help or guide on how to make a point of sale (how to add items, sum of price, qty that will be subtracted to the stocks form once processed, etc.)

What I have tried:

I have a stocks form already, and a pos design. I only need the code or any guide on how to start the coding. Thabk you so much!
Posted
Updated 25-Feb-18 0:39am
Comments
SoMad 24-Feb-18 22:27pm    
Is this for professional (work) use, for a course assignment or are you just doing it for fun?
I ask because it seems like you think it will be easy/quick to develop a Point Of Sales (register) application. It really is not simple.
Member 13680689 25-Feb-18 0:15am    
Hi! It is for our project. I am aware of how complicated it is, I just need to know how to add items to the datagridview once searched, the total transaction of sales, how the quantity will be subtracted to the stocks form, etc.

1 solution

We can't tell you: there are far too many different ways you can have organised your
software already! And - of course - we don;t do your homework for you! :laugh:

Start by looking at the whole problem from two (or more likely three) different points-of-view:
1) Data layer. What are you storing, how are you storing it? This is all the stuff to do with actually transferring data between your application and "permanent storage" and it should "hide" the actual permanent storage mechanisms from the rest of your code. Here you write code that interfaces between the actual storage - whether it's a text file, a spreadsheet, a server-based database in the cloud, or anything in between.
2) Presentation layer. This is where you interface with the user - it's about forms, and controls, and User Interfaces.
3) Business layer. (You may be able to skip this for your simple app). This is where the decisions are made and changes that the user has made are processed according to the company rules before being passed through to the Data layer for storage. For example, this is where a sale of five units is checked against a reorder level and an item added to the "Reorder these" list, before the actual withdrawal from stock is processed into the permanent storage.

I get a strong feeling from your - very vague - description that you've just leapt into throwing a form together without any thought about how you store it or what intermediate structures you will need (Item classes, collections of stock items, any of it really). And that's where the real coding complexity lies!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900