473,387 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

What's the best concept?

sj
I need to write an application to perform Quotations, and confrimed
Quotations information can later extracted and print a Delivery Order,
and finally an Invoice. Note that, ammendments maybe made at different
stages (meaning quantity may varies, further discount exercised during
invoicing, etc).

What is best way to build this type of task? Do I keep all these
document information in 1 table or is it better for me to maintain the
3 or table (one for each document)? Is so how do I extract information
from one table to another?

Anyone have experience in this?

Jul 8 '06 #1
1 1172
"sj" <se*********@gmail.comwrote in
news:11**********************@p79g2000cwp.googlegr oups.com:
I need to write an application to perform Quotations, and
confrimed Quotations information can later extracted and print
a Delivery Order, and finally an Invoice. Note that,
ammendments maybe made at different stages (meaning quantity
may varies, further discount exercised during invoicing, etc).

What is best way to build this type of task? Do I keep all
these document information in 1 table or is it better for me
to maintain the 3 or table (one for each document)? Is so how
do I extract information from one table to another?

Anyone have experience in this?
You have three types of documents (entities) You should have
three or more tables. Example Invoices may have several invoice
lines for different items, all with one invoice header. The same
is true of Orders. You should also think of a separate table to
store customer info.

Linking multiple tables is done by defining relationships
between the controlling fields in the various tables. Each table
should have a primary key ( a field which uniquely identifies
every row in the table). For customers this would be the
Customer_ID. when a customer requests a quotation, you store the
Customer_ID as a foreign key in the quotation table. You then
use the relation between the Quotation table and the Customer
table to give the correct Customer name, Customer address, and
other info particular to the specified customer. You don't need
to 'extract' info from one table to the other, except for the
key, you just 'relate' the data instead.

Again the invoice_line table is related to the invoice table
through the key invoice_number (or Invoice_ID). The invoice may
be related directly to the customer table via the Customer_ID or
indirectly through an intermediate relation to Orders on
Order_ID and then to the customer_ID in the orders table

see http://en.wikipedia.org/wiki/Entity-relationship_model.

Another thing to do is examine the samples and templates that
came with the program.

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Jul 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

137
by: Philippe C. Martin | last post by:
I apologize in advance for launching this post but I might get enlightment somehow (PS: I am _very_ agnostic ;-). - 1) I do not consider my intelligence/education above average - 2) I am very...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
145
by: Mark Johnson | last post by:
Oddly enough, I found it difficult, using Google, to find a list of best-of sites based on the quality of their css packages. So I'd ask. Does anyone know of particularly good sites which are in...
86
by: Michael Kalina | last post by:
Because when I asked for comments on my site-design (Remember? My site, your opinion!) some of you told me never to change anything on font-sizes! What do you guys think of that:...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
51
by: jacob navia | last post by:
I would like to add at the beginning of the C tutorial I am writing a short blurb about what "types" are. I came up with the following text. Please can you comment? Did I miss something? Is...
6
by: dmoisset | last post by:
Hi, I'm looking for a standard definition about what should {printf ("%f", x)} do when x is INFINITY... I've found that in ISO C99 the output should be "inf" or "infinity", but I was wondering if...
4
by: hufel | last post by:
Hi, I'm doing my first big project in C# and I'm stuck with a problem that I believe has a simple and efficient solution for it (I just haven't bumped into it yet...). The concept is the...
167
by: darren | last post by:
Hi I have to write a multi-threaded program. I decided to take an OO approach to it. I had the idea to wrap up all of the thread functions in a mix-in class called Threadable. Then when an...
13
by: Hussein B | last post by:
Hi, I'm familiar with static method concept, but what is the class method? how it does differ from static method? when to use it? -- class M: def method(cls, x): pass method =...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.