"David B" <Da***@marleycotenospam.fsnet.co.uk> wrote in message
news:c1**********@newsg2.svr.pol.co.uk...
I have an app which includes invoicing, which is working fine.
I am wondering how best to deal with the situation where the amount paid
is different from the amount invoiced.
Would it be best to have a separate table or just an extra field in the
table that stores invoicenum, amountinvoiced.
Any thoughts ?
TIA
David B
Hexham UK
It could be even worse than that. You will probably need at least two extra
tables: tblPayments and tblPaymentAllocations. It is not uncommon to
receive an amount say £1,750.00 which is to cover two invoices, say £1,200
for INV10236 and £550 for INV10362. Now, if the customer sent a cheque for
£2,000 you would have one payment record, two invoice records and three
allocation records. The final allocation record would be £250 not against
any invoice - which is what I believe the accountants call a 'payment on
account'.
A huge help here might be to talk to an accountant / book-keeper and ask how
they record these sorts of details. Alternatively, see if you can get a
trial version of a standard accounting piece of software (perhaps Sage).
This will come complete with help files to show you how to operate the
software plus odbc drivers to allow you a sneaky peak at their table
structures - just for inspiration, of course.
Fletcher