T
Tony Johansson
Hello!
I hope somebody can give me a hint what classes would be suitable in this
system.
I know one class that I want to have in this system and that is Product.
I have a small description about the system below.
I'm about to design a small system that will administrate a physical shop
that have a little store that will sell media(books, cd/dvd,games and such
things). The system will be used by the people who work in the media shop.
The system will be used both for cash handling (when you sell media to a
customer) and for stock-keeping.
So in this shop we can assume that some people work with the store and some
work with selling products.
The functionality for the system should be:
*******************************
A.Add a new product.
B.Remove a product.
C.Add a new delivery from wholesaler which will incease the number of one or
more particular products.
D.Sale of product which will decrease the number of a particular product.
E.List all product that the shop has.
A product should have the following fields.
Name, Price, and a unique product number
The system should have at least two views.
One view that is used for handling the cash task.
One view for the stock-keeping task
These two view should be working against the same data.
One more thing the data should be stored on file so no database should be
used.
There should also exist some control functions like:
1.You should not be able to add two products with the same product number.
2.You should get a warning if you try to remove a product from the store if
the system say that you have at least one left
The functionallity A,B and C should only be available in the view that
belong to the people that work in the store
The functionallity D should only be available in the view that belong to the
people that work with cash handling task view(sell media).
The functionallity E should be available from both the stock-keeping task
view and the cash handling task view. So this functionallity can both people
that work in the store and people that work with selling media use.
//Tony
I hope somebody can give me a hint what classes would be suitable in this
system.
I know one class that I want to have in this system and that is Product.
I have a small description about the system below.
I'm about to design a small system that will administrate a physical shop
that have a little store that will sell media(books, cd/dvd,games and such
things). The system will be used by the people who work in the media shop.
The system will be used both for cash handling (when you sell media to a
customer) and for stock-keeping.
So in this shop we can assume that some people work with the store and some
work with selling products.
The functionality for the system should be:
*******************************
A.Add a new product.
B.Remove a product.
C.Add a new delivery from wholesaler which will incease the number of one or
more particular products.
D.Sale of product which will decrease the number of a particular product.
E.List all product that the shop has.
A product should have the following fields.
Name, Price, and a unique product number
The system should have at least two views.
One view that is used for handling the cash task.
One view for the stock-keeping task
These two view should be working against the same data.
One more thing the data should be stored on file so no database should be
used.
There should also exist some control functions like:
1.You should not be able to add two products with the same product number.
2.You should get a warning if you try to remove a product from the store if
the system say that you have at least one left
The functionallity A,B and C should only be available in the view that
belong to the people that work in the store
The functionallity D should only be available in the view that belong to the
people that work with cash handling task view(sell media).
The functionallity E should be available from both the stock-keeping task
view and the cash handling task view. So this functionallity can both people
that work in the store and people that work with selling media use.
//Tony