473,667 Members | 2,548 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Receipt/invoice database

38 New Member
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 issue 1 receipt with 12 payments (1 check for each month of the year) and then, everytime a check comes to delivery, the invoice is printed out with the receipt number.

What would be the relation between the receipt/invoice tables and how do I make the relevant receipt number for each invoice please?

Thanks.
Jan 1 '08 #1
14 10470
missinglinq
3,532 Recognized Expert Specialist
Perhaps my brain is addled (although I didn't celebrate last nite!) but

"I have invoice = parents and sons + receipt = parents and sons tables + a customer table"

makes absolutely no sense to me! I think you're really going to have to do a better job of describing what you already have in place. Posting of meta data info should be something on the order of:

Table1
FirstFieldName (DataType)
SecondFieldName (DataType)
ThirdFieldName (DataType)

Table2
FirstFieldName (DataType)
SecondFieldName (DataType)
ThirdFieldName (DataType)

Linq ;0)>
Jan 1 '08 #2
NeoPa
32,568 Recognized Expert Moderator MVP
Like general database work, the idea is that the more effort you put into asking a question clearly, the less problems we all have over all.
The parallel is so close to database design. Do it properly and the whole project benefits. Do it sloppily and you spend most of your energy clearing up the resultant problems.
I don't want to be overly harsh, but as Linq says, your question could do with a little more thought and careful preparation.
Jan 2 '08 #3
eyalco
38 New Member
Thanks friends, you're right.
Here's my basic layout of the database :

TBL_CUSTOMER :
CustomerID AutoNumber primary key
Surname Text
FirstName Text
Address Text
City Text
Zip Text

Invoice table:
InvoiceID AutoNumber primary key
CustomerID Number who is to pay this invoice
InvoiceDate Date/Time when the invoice was sent
Descrip Text (or memo) what this is for
AmountEx Currency amount of this invoice, without tax.
TaxRate Number (Double) Percent tax rate to add.

Invoice_sons_tb l:
InvoiceID AutoNumber primary key
ID_Item Number who is to pay this invoice
Item_descriptio n text what this is for
price_per_unit Number what each unit worth
Discount Number
Quantity Number
Sum Number

TBL_SUB_RECEIPT :
InvoiceID Number
Payment Text
Bank Number
Branch Number
ACC Text
Payment_Date date

Receipt table:
ReceiptID AutoNumber primary key
CustomerID Number who paid this amount
ReceiptDate Date/Time when received.
Amount Currency amount received.
Comment Memo description of what for.

I joined the receipt table to the invoice table in a one to many connection, but think it might be better to join both to customer perhaps?
Thanks guys.
Jan 3 '08 #4
NeoPa
32,568 Recognized Expert Moderator MVP
That's a good first step eyalco, but as Linq says in his post (#2), your basic question is also phrased in such a way as to be very hard to understand (I didn't manage to work out what you were saying).
Perhaps you could try rewriting it carefully (remember punctuation can be your friend - especially where there is ambiguity).
I get that you want to know how best to design your table structure (a good question by the way - shows you're thinking along the right lines). What I don't get is the scenario you have to work within.
Jan 3 '08 #5
eyalco
38 New Member
Thanks.
As you said, I want to know what w'd be the best way to join the relations between the tables - will it be throug receipt ==> invoice in a 1 to many relation or is it better to join both to customer table? or any other suggestion you might have?

The 2nd thing I mentioned was that each receipt has 12 invoices (1 for every month of the year), I want to relate each monthly invoice to the relevant receipt so I can see for each invoice to which receipt it "belongs" and on the other hand, when looking at on going receipt, I can see how many invoices are related to.

I hope I'm clearer - please direct me if not.
Appreciate your help.
Jan 3 '08 #6
NeoPa
32,568 Recognized Expert Moderator MVP
I'm afraid you don't seem to have grasped the problem here. Let's try again.

First you need to describe the overview of your project clearly. Don't use any terms that have not already been defined and made clear. There's nothing more frustrating than being told you needn't worry about the urgles as they're simply offshoots of the oojimaflips.

Explain how all the parts of the project fit together. For this purpose you can ignore any parts of the project that don't pertain to your particular problem or question. We're mainly looking to pass the question on from one party to another via a web page.

Avoid making unfounded assumptions. Because you know how receipts relate to invoices in your system, don't assume that they are connected that way universally, or even that if they were, someone would know that without being told.

Pay particular attention to explaining how the particular tables that you're asking about work together logically.

If you can explain all this clearly then we can start looking at your issue and recommending the best way forward :)
Jan 4 '08 #7
eyalco
38 New Member
Well, I'll explain the project, maybe it will clear things up :
It's a kindergarten where parents come once a year and pay with 12 checks, 1 for each month. Upon payment, they receive a receipt with their 12 checks listed. Every time when a check is due, we issue an invoice.

That's it.
Hope you can help.
Thabks.
Jan 5 '08 #8
NeoPa
32,568 Recognized Expert Moderator MVP
So, if I understand you correctly :
An invoice is issued once a year (when all twelve cheques are due).
An invoice consists of twelve separate items and payment for all twelve are expected in one go. Hence this is like a single item.
Receipts are issued for each item, but the twelve separate months are included on the one recipt. Making it similar to the invoice.
What would be the relation between the receipt/invoice tables and how do I make the relevant receipt number for each invoice please?
  1. In this case you need would have a one for one relationship between Invoice and Receipt tables. Assuming the invoice is entered first, the receipt should have a foreign key field pointing to the matching invoice record.
  2. No idea. There is no information supplied for this.
Jan 5 '08 #9
eyalco
38 New Member
Few clarifications please :

So, if I understand you correctly :
An invoice is issued once a year (when all twelve cheques are due).
It's the other way around : A receipt is isuued once a year - with 12 utems, each item is a chexk(payment) details.

An invoice consists of twelve separate items and payment for all twelve are expected in one go. Hence this is like a single item.
A receipt consists of twelve separate items. Payment is seperated monthly - each month = 1 payment.


Receipts are issued for each item, but the twelve separate months are included on the one recipt
Receipts are issued for 12 items at once, only once a year.
Each receipt consists of 12 monthly payments or actualy of 12 invoices (a check/payment becomes an invoice every month when it's due.

Does that seem different then what u mentioned? will it change your answer?
Thanks.
Jan 6 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

2
379
by: SusieS | last post by:
I'm trying to set up a simple relational Access database to look after customer orders for our small bookselling operation. I'm a beginner at this, teaching myself via Help files and the manual 'Access Inside Out'. I've set up linked tables Customers, Orders and OrderDetails and these seem to be working OK, accepting new data via forms and subforms. So now I need to print out a receipt detailing the order for the customer. I've assumed...
5
5403
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? (I think i prefer delivery receipt) Any help would be greatly appreciated! Chris Thunell cthunell@pierceassociates.com mycode currently is the following:
0
1898
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: myMessage.Headers.Add("Return-Receipt-To", "me@something.com"); It successfully adds the header to the email, but for some reason I don't get delivery receipt. And when I send email with Outlook and request delivery receipt, I get it and the header of the mail is almost...
2
4535
by: Chris Dunaway | last post by:
I have a web service which is accessed by a windows forms application. When the application submits a unit of work (a "job"), I want to return a job receipt or tracking number back to the application. My requirements are these: 1. The receipt number must be unique (like a guid is unique) 2. The receipt must be NON sequential. 3. If possible, I'd like it to be 10 to 12 characters long. 4. If possible, I'd like to include only...
1
1741
by: Mike | last post by:
This will consist of : Master Invoice File with a 1 to many relationship Invoice Details file - each line of Invoice will be held in here Stock File Can anyone point me to some resource or sample showing Parent / Child database
1
2700
by: Declan Barry | last post by:
Hi all.. I have a query from one of our students regarding an order invoice payment database. The student can make up the order database okay where a customer picks a number of products and enters the quantity and then the system prints out an invoice for the customer which he/she can then pay. The twist in this one is, rather than the customer paying the invoice in full, the student wants the customer to have the ability to pay off
1
9524
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 by default to print a whole A4 size page, I want the receipt printer to print an unlimited lenght of receipt, that is to say that if five items are sold, the receipt printer should print company details with five items and a total figure and stop...
3
1846
by: hugz | last post by:
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...
7
6043
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
0
8883
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8787
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8561
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8645
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7389
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6203
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4200
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1778
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.