Normal
0
false
false
false
EN-US
X-NONE
X-NONE
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
I think you have made this
more complicated that it needs to be. Let me see if I can enumerate a
list of things you require in a different way to make it seem more managable.
1.
You have the concept of
merchandise. Merchandise has the following characteristics:
a.
Merchandise is of a specific type
(Shirt, Brass Knuckles, CD)
b.
Merchandise has properties that are
defined by the type (Shirt => {Color, Sleeve type, Material, Thickness})
c.
You might want to add some specifics
to your merchandise (for instance, which bank members are featured on the
shirt, Kirk Hammett’s new shirt is probably going to sell better than Lars
Ulrich’s new shirt).
d.
Merchandise has any other number of
properties: base price, cost, bar code, weight, supplier, etc.
2.
You have the concept of a show which
has the following properties:
a.
City, Venue, Expected Number of
People, Actual Number of People, Admission rules (over 18, over 16, etc.), etc.
3.
You want to record the number of
each merchandise that is sold at each show, and at what price (shirts might be
on a 20% off sale or something)
4.
You want to record total revenue for
each show (the amount of money you have at the end probably won’t add up to the
amount you should have because of error, theft, etc.
As you can see, you can have a
pretty generic sales (transaction) table and put all the smarts in the
merchandise. You can always get all the
specific information for the sale from the merchandise information.
Anyways, it sounds like a fun
project, hope you enjoy working on it.
The pig go. Go is to the fountain. The pig put foot. Grunt. Foot in what? ketchup. The dove fly. Fly is in sky. The dove drop something. The something on the pig. The pig disgusting... see bio for the earth shattering ending.