A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

invoice data



 
 
Thread Tools Display Modes
  #11  
Old July 13th, 2009, 10:23 PM posted to microsoft.public.access.tablesdbdesign
Fred
external usenet poster
 
Posts: 1,451
Default invoice data

IMHO, there are many business reasons to consider an invoice to be an entity
(and a one time event and record of such) rather than just a calculation.
In cases where this concept is used, it is consistent with (and not an
exception to) the rules of DB design to record it, including it's totals.

I believe that the fundamental structure of Northwind does not do the above.


  #12  
Old July 14th, 2009, 12:12 AM posted to microsoft.public.access.tablesdbdesign
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default invoice data

If you are storing all the component values, how does storing their sum
(i.e., the "total") add value? And if someone corrects a mistaken entry,
won't this approach require additional procedures to "re-sync" the total
from the components?

(I'm not convinced one way or the other, yet, just trying to flesh out all
the considerations...)

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Fred" wrote in message
...
IMHO, there are many business reasons to consider an invoice to be an
entity
(and a one time event and record of such) rather than just a calculation.
In cases where this concept is used, it is consistent with (and not an
exception to) the rules of DB design to record it, including it's totals.

I believe that the fundamental structure of Northwind does not do the
above.




  #13  
Old July 14th, 2009, 03:14 PM posted to microsoft.public.access.tablesdbdesign
Fred
external usenet poster
 
Posts: 1,451
Default invoice data

Hello Jeff,

I put the "in cases where...." in my post because I think that the concept
in my post is sometimes but not always the best one to use. But an argument
for my "sometimes" thought" would be:

In business, invoices are usually treated as a one time event. (I.E.
something that you must do once and only once). After that you can send a
copy of an invoice (identified as such), or a statement, but never send
the invoice a second time. All of the enterprise softwares that we've
used even serialize (with an inoice number) this issuance and "lock it up".


IMHO your question provides a good example situation. Let's say that you
have issued an invoice, and then a week later you find that a price was in
error. You would issue a new document (typically 2nd invoice with a new
number) with a credit or debit to make the correction. You would not want
to destroy your record of the original invoice, and so you would specifically
NOT want to "resync" the original invoice.


I think that an analogy might be if there was a math contest. And they
asked what 11 times 12 is. Bill answers 132 and wins the contest. They
officially recorded that he answered 132. This is a record of what was
said, (a databasable entity) not just a display of what 11 times 12 is.

A week later the second place finisher says that Bill gave the wrong answer.
You want to prove them wrong. If you did not record the "132", and
instead say "Bill won, and the correct answer for 11 times 12 is 132,
therefore Bill must have answered 132" the next thing that they will say is
"so, you have no record of how Bill answered the question"

The down side of the "invoice as an entity" concept is that databasing
invoices as entities it makes it a lot more complicated. So complicated
that from what I've seen it is seldom done in Access, although routinely done
in in enterprise software products.





  #14  
Old July 14th, 2009, 04:04 PM posted to microsoft.public.access.tablesdbdesign
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default invoice data

OK, that makes good sense.

We have a similar situation in that we create contract/amendment documents,
which we do not wish to have altered (unless we do the work). We save the
document as a PDF file and send it via email, then we scan the
fully-executed document and store it for any future need. Now if I can just
get them to drop the paper file!

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Fred" wrote in message
...
Hello Jeff,

I put the "in cases where...." in my post because I think that the concept
in my post is sometimes but not always the best one to use. But an
argument
for my "sometimes" thought" would be:

In business, invoices are usually treated as a one time event. (I.E.
something that you must do once and only once). After that you can send a
copy of an invoice (identified as such), or a statement, but never send
the invoice a second time. All of the enterprise softwares that we've
used even serialize (with an inoice number) this issuance and "lock it
up".


IMHO your question provides a good example situation. Let's say that you
have issued an invoice, and then a week later you find that a price was in
error. You would issue a new document (typically 2nd invoice with a new
number) with a credit or debit to make the correction. You would not
want
to destroy your record of the original invoice, and so you would
specifically
NOT want to "resync" the original invoice.


I think that an analogy might be if there was a math contest. And they
asked what 11 times 12 is. Bill answers 132 and wins the contest.
They
officially recorded that he answered 132. This is a record of what was
said, (a databasable entity) not just a display of what 11 times 12 is.

A week later the second place finisher says that Bill gave the wrong
answer.
You want to prove them wrong. If you did not record the "132", and
instead say "Bill won, and the correct answer for 11 times 12 is 132,
therefore Bill must have answered 132" the next thing that they will say
is
"so, you have no record of how Bill answered the question"

The down side of the "invoice as an entity" concept is that databasing
invoices as entities it makes it a lot more complicated. So complicated
that from what I've seen it is seldom done in Access, although routinely
done
in in enterprise software products.







  #15  
Old July 14th, 2009, 04:47 PM posted to microsoft.public.access.tablesdbdesign
Fred
external usenet poster
 
Posts: 1,451
Default invoice data

Cool.

It would be beyond me to design the Access app to do that but I'm sure that
you could.
  #16  
Old July 14th, 2009, 06:35 PM posted to microsoft.public.access.tablesdbdesign
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default invoice data

Not fast, not easy, but some of us don't know how to let go once we start
.... I think it goes along with the mind-set of "How Hard Could It Be?"G!

Jeff

"Fred" wrote in message
...
Cool.

It would be beyond me to design the Access app to do that but I'm sure
that
you could.



  #17  
Old July 15th, 2009, 12:34 AM posted to microsoft.public.access.tablesdbdesign
Doctor
external usenet poster
 
Posts: 75
Default invoice data

Great Discussion. Challenged my thoughts. Gave some ideas. Thanks.

"Doctor" wrote:

You shouldn't store a calculated value in a table. Calculate what your
looking for either in a query, form, or report when they run.

"cjgav" wrote:

Hi
I've created an invoice based on northwind.
I would like to create a table with the invoice total & vat in it .
Because this is generated in the invoice report I d'nt seem to be able to
enter in a table.
can anyone help?

  #18  
Old July 15th, 2009, 03:07 AM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default invoice data

On 13 Jul 2009 20:53:12 GMT, "David W. Fenton"
wrote:

I would disagree. Invoice calculations are one thing that perhaps
should *not* be calculated on the fly.


Thanks, David - good points.
--

John W. Vinson [MVP]
  #19  
Old July 17th, 2009, 10:31 AM posted to microsoft.public.access.tablesdbdesign
cjgav
external usenet poster
 
Posts: 54
Default invoice data

Hi
Thanks for your help .

"NG" wrote:

Hi,

In the query design you need to build a totals query. Use the button with
the sigma sign to transform your query in a totals query, then group on the
fields you need to group on and set the sum for the fields you want to
display the totals for.
--
Kind regards
Noƫlla


"cjgav" wrote:

Hi
Thanks for your Help.
Were I seem to be stuck is I cannot display the sum of cost of parts used in
a query or report , it seems easy to do on a report (=sum[fieldName]) But
this does not work in query as there is a record for each part used.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:34 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.