473,508 Members | 2,032 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to connect the receipt to the purchase items?

I'm a beginner of access.. CAn sumbdy help me in constructing my tables that
connects the receipt number to the items purchased if the receipt number is
set to Autonumber...pls help... i nid d answer asap...

Apr 24 '07 #1
3 1834
This is a big question, and there is not a simple answer.

The core issue is to get the tables set up correctly. Presumably you already
have the typical tables set up, such as:
- Client table (one record for each customer, with ClientID primary key)
- Invoice table (one record for each invoice, with InvoiceID primary key)
- InvoiceDetail table (line items for the invoice, relating to
Invoice.InvoiceID.

Now you want to handle payments received.
Could any of these scenarios arise:
a) A client writes out a check that covers 2 or 3 invoices.
b) A client pays part of an invoice now, and the rest later.
c) A client prepays for something that has not yet been invoiced.

If (a) arises, you have a one-to-many relation between payments and
invoices.

If (b) could arise also, you now have a many-to-many relation between
payments and invocies.

If (c) could happen, you have payments that are not actually tied to any
invoice.

The best suggestion, therefore, is to NOT link payments to invoices. You
just accept the payment, and calculate what the client owes you as the sum
of invoices, less the sum of payments. If negative, that's the balance owed.
If positive, that's the amount prepaid. If zero, we're square.

A double-entry accounting system takes this a step further. Instead of
summing all invoices ever written out to the client, and summing all
payments ever received, they close off the finances periodically (typically
at the end of each month), and calculate the closing balance, which is also
the opening balance for the next financial period. It is absolutely crucial
than no changes are permitted to records once the period is closed; if you
find a mistake, you must put a reversal through in the current period. In
this system, the amount owed is the opening balance + invoices in this
period, - payments received in this period. (That's a poor overview: you
probably need to study accounting if you plan to program this properly.)

So, the question is, how far do you need to go?
Do you need to handle (a), (b), and (c)?
Do you want to go as far as double-entry accounting?

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"hugz" <u33625@uwewrote in message news:7129e0d7e9670@uwe...
I'm a beginner of access.. CAn sumbdy help me in constructing my tables
that
connects the receipt number to the items purchased if the receipt number
is
set to Autonumber...pls help... i nid d answer asap...
Apr 24 '07 #2
On Tue, 24 Apr 2007 12:32:46 +0800, "Allen Browne"
<Al*********@SeeSig.Invalidwrote:

Even if (c) is the case, you can still relate payments to invoices.
Not in all situations do clients find it acceptable that their
payments are applied to the oldest invoices rather than a specific
invoice.

Also: the further you go down the road of writing an accounting
program, the more you should think about integrating your code with a
real one.

-Tom.

>This is a big question, and there is not a simple answer.

The core issue is to get the tables set up correctly. Presumably you already
have the typical tables set up, such as:
- Client table (one record for each customer, with ClientID primary key)
- Invoice table (one record for each invoice, with InvoiceID primary key)
- InvoiceDetail table (line items for the invoice, relating to
Invoice.InvoiceID.

Now you want to handle payments received.
Could any of these scenarios arise:
a) A client writes out a check that covers 2 or 3 invoices.
b) A client pays part of an invoice now, and the rest later.
c) A client prepays for something that has not yet been invoiced.

If (a) arises, you have a one-to-many relation between payments and
invoices.

If (b) could arise also, you now have a many-to-many relation between
payments and invocies.

If (c) could happen, you have payments that are not actually tied to any
invoice.

The best suggestion, therefore, is to NOT link payments to invoices. You
just accept the payment, and calculate what the client owes you as the sum
of invoices, less the sum of payments. If negative, that's the balance owed.
If positive, that's the amount prepaid. If zero, we're square.

A double-entry accounting system takes this a step further. Instead of
summing all invoices ever written out to the client, and summing all
payments ever received, they close off the finances periodically (typically
at the end of each month), and calculate the closing balance, which is also
the opening balance for the next financial period. It is absolutely crucial
than no changes are permitted to records once the period is closed; if you
find a mistake, you must put a reversal through in the current period. In
this system, the amount owed is the opening balance + invoices in this
period, - payments received in this period. (That's a poor overview: you
probably need to study accounting if you plan to program this properly.)

So, the question is, how far do you need to go?
Do you need to handle (a), (b), and (c)?
Do you want to go as far as double-entry accounting?
Apr 24 '07 #3
On Apr 24, 12:32?am, "Allen Browne" <AllenBro...@SeeSig.Invalid>
wrote:
This is a big question, and there is not a simple answer.

The core issue is to get the tables set up correctly. Presumably you already
have the typical tables set up, such as:
- Client table (one record for each customer, with ClientID primary key)
- Invoice table (one record for each invoice, with InvoiceID primary key)
- InvoiceDetail table (line items for the invoice, relating to
Invoice.InvoiceID.

Now you want to handle payments received.
Could any of these scenarios arise:
a) A client writes out a check that covers 2 or 3 invoices.
b) A client pays part of an invoice now, and the rest later.
c) A client prepays for something that has not yet been invoiced.

If (a) arises, you have a one-to-many relation between payments and
invoices.

If (b) could arise also, you now have a many-to-many relation between
payments and invocies.

If (c) could happen, you have payments that are not actually tied to any
invoice.

The best suggestion, therefore, is to NOT link payments to invoices. You
just accept the payment, and calculate what the client owes you as the sum
of invoices, less the sum of payments. If negative, that's the balance owed.
If positive, that's the amount prepaid. If zero, we're square.
Mr. Brown,

This might be an acceptable solution for a class project or limited
accounting system.
This will not permit you to build an "Account Receivable By Age"
report, where you show
the customer and amount owed by past due dates. In addition, some
business give
a discount to bills that are payed quickly with terms like "2% 10
days, net 30 days".
As you pointed out, a double entry accounting system is required for
this information.
These are old concepts, my source also showed how to automate sales
with punch cards.

Apr 25 '07 #4

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

Similar topics

5
5386
by: Chris Thunell | last post by:
I'm using the system.web.mail in vb.net to send emails out in a vb.net application. The sending of emails works great. Is there a way to have it send me back a delivery receipt or a read receipt?...
0
1887
by: Kostadin Kostov | last post by:
Hi! I'm developing component for sending emails and want to have the ability to request delivery receipt when sending an email. I use the "Return-Receipt-To" header:...
1
9485
by: hasanainf | last post by:
Hi all and thanking you all in advance for your help My client wants to use a receipt printer. Since I have never used one before I have some questions. 1. Unlike other printers which are set...
2
3317
by: vikas.bhatia | last post by:
Is this still true? http://groups.google.com/group/comp.databases.ibm-db2/browse_thread/thread/58c6c36ce9006d50/778f98749d8e2983?lnk=st&q=DB2+Connect+product+license&rnum=6#778f98749d8e2983 would...
2
1315
by: Warren Churulich | last post by:
Is there a way to allow a customer to make a purchase with Commerce Starter Kit without logging in? Please post the answer here and perhaps samples. Thanks, Warren
7
6025
by: ARC | last post by:
Hello all, What's the proper paper size setting if you want to do a receipt printer report, that's a continuous form? I don't really see an option for a continuous paper size. Thanks! Andy
14
10453
by: eyalco | last post by:
I'm building a receipt/invoice database - I've started with the invoice first, then the receipt. I have invoice = parents and sons + receipt = parents and sons tables + a customer table. I want to...
4
5659
smithj14
by: smithj14 | last post by:
I am working on an access app that will generate receipts for clients who pay our company. I am stuck on two things. First: I want to increment a receipt number automatically without using...
0
7331
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
7391
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...
1
7054
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7501
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5056
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1564
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
424
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.