R
Ron
I am trying to design a (relatively) simple billing module
for our database. Its core is a table in which each record
represents one invoice. However, each invoice may have
multiple line items, depending on the type of service
performed. For example:
invoice# 112
1. Repair 10 hrs @ $20.00 = $200.00
2. Remodel 40 hrs @ $30.00 = $1200.00
3. Constru 10 hrs @ $15.00 = $150.00
Total $1550.00
The way I have it set up currently is to have a set of
fields in my table for each line item (e.g. [ServiceType1],
[Hours1], [Rate1], [ServiceType2], [Hours2], [Rates2],
etc.), but I'm starting to suspect my design is flawed.
My method seems convoluted and I'm afraid I'm going to
create problems for myself when I want to create reports
that are based on values that are pulled from different
fields. (For example, I'll want to create a report that
shows ALL work of type "Repair Work" whether it's in field
[ServiceType1], [ServiceType2], or [ServiceType3].
Guidance and advice is appreciated. Thanks.
Ron
for our database. Its core is a table in which each record
represents one invoice. However, each invoice may have
multiple line items, depending on the type of service
performed. For example:
invoice# 112
1. Repair 10 hrs @ $20.00 = $200.00
2. Remodel 40 hrs @ $30.00 = $1200.00
3. Constru 10 hrs @ $15.00 = $150.00
Total $1550.00
The way I have it set up currently is to have a set of
fields in my table for each line item (e.g. [ServiceType1],
[Hours1], [Rate1], [ServiceType2], [Hours2], [Rates2],
etc.), but I'm starting to suspect my design is flawed.
My method seems convoluted and I'm afraid I'm going to
create problems for myself when I want to create reports
that are based on values that are pulled from different
fields. (For example, I'll want to create a report that
shows ALL work of type "Repair Work" whether it's in field
[ServiceType1], [ServiceType2], or [ServiceType3].
Guidance and advice is appreciated. Thanks.
Ron