| View previous topic :: View next topic |
| Author |
Message |
Tim Chemaly Guest
|
Posted: Sun May 23, 2004 2:39 pm Post subject: need help on designing invoicing system |
|
|
Hi
I'm busy designing an invoicing system but need some help with the logic
I have a CustomerTable, InvoiceTable and InvoiceItemsTable
My problem is the PaymentTable does it point to the InvoiceTable or the
CustomerTable?
For instance:
If somepays pay their bill using an invoice it makes sense pointing the
PaymentTable to the InvoiceTable
But what if he pays two invoices using one payment (such as a cheque) in
this case which Invoice should the payment point to? here it makes more
sense having the
PaymentTable point to the CustomerTable?
But now I'm losing the detailed info on which invoice the payment was for!
This can be a bad thing because there may be some dispute with a particular
invoice in which case the customer doesn't actually want to pay THAT invoice
but is willing to pay the others. Having PaymentTable point to CustomerTable
mean its impossible to handle such a scenario!
An suggestions ?
Regards
---------------------------------------------------------
Tim Chemaly
|
|
| Back to top |
|
 |
Yahia El-Qasem Guest
|
Posted: Sun May 23, 2004 3:20 pm Post subject: Re: need help on designing invoicing system |
|
|
just an idea :
create a PaymentItemTable which points to InvoiceTable... let PaymentTable
point to CustomerTable...
this should solve all mentioned scenarios...
HTH
Yahia
|
|
| Back to top |
|
 |
Tim Chemaly Guest
|
Posted: Mon May 24, 2004 8:26 am Post subject: Re: need help on designing invoicing system |
|
|
Hi Yahia
I assume PaymentItemTable should point to PaymentTable as well? If not,
wouldn't it be better to rename the tables to InvoicePaymentTable (that
points to InvoiceTable ) and CustomerPaymentTable that points to
CustomerTable?
--
Regards
---------------------------------------------------------
Tim Chemaly
"Yahia El-Qasem" <Yahia.El-Qasem (AT) mgh (DOT) metro-ag.de> wrote
| Quote: | just an idea :
create a PaymentItemTable which points to InvoiceTable... let PaymentTable
point to CustomerTable...
this should solve all mentioned scenarios...
HTH
Yahia
|
|
|
| Back to top |
|
 |
Yahia El-Qasem Guest
|
Posted: Mon May 24, 2004 4:13 pm Post subject: Re: need help on designing invoicing system |
|
|
"Tim Chemaly" <tim (AT) brettonwoods (DOT) biz> schrieb im Newsbeitrag
news:40b1b1b6 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi Yahia
I assume PaymentItemTable should point to PaymentTable as well?
|
Yes :-)
Yahia
|
|
| Back to top |
|
 |
|