Re: transaction and Payment relation

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"SF" <socfund@xxxxxxxxxxxxx> wrote in
news:eCbxqzsBGHA.1008@xxxxxxxxxxxxxxxxxxxx:

> a/ Costumer pays a lumpsum for several open transactions
> b/ Customer pays several installment per open transaction
>
> I create 2 tables (see below) for this, but I cannot figures out how
> to relate these 2 tables to the transaction (mark each transaction as
> completed once the payment has been received)
>

What happens when a customer has several open transactions, and makes a
couple of partial payments? Do you have a rule that pays up the oldest
transactions first; or is the money split proportionately; or does the
customer get to choose ("I'll pay for the diary and the calendar, but not
for the pen because it doesn't write properly")?

It may well be that you need a new table called Contributions, which will
list how much of each Payment contributes to each Transaction. But it's a
lot of overhead given that most of the time a single customer will buy a
single thing and pay for it with a single payment!

An alternative approach would be to separate the outgoings and incomings
completely: the amount people owe you is the difference between the total
of the transactions and the total of the payments. As you can tell, I
don't know enough about business to know whether you _have_ to attach
payments to sales, or just to people who owe you stuff.

B Wishes


Tim F

.



Relevant Pages

  • Re: Report based on calculations of 2 records
    ... a query that links the two tables together, via the CustID." ... When you issue a statement to a customer, that record needs to be recorded so the customer can pay it. ... you should already have the payment due records in your system. ... And for each transactions, my user keys in the PayFrom and PayTo dates based on how much the customer wants to pay, in terms of days. ...
    (microsoft.public.access.reports)
  • Re: Report based on calculations of 2 records
    ... The agreement period is considered fulfilled if the customer pays until the ... And for each transactions, my user keys in the PayFrom and PayTo dates based ...
    (microsoft.public.access.reports)
  • RE: the "why" of tiered pricing (Was RE: Using Java in batch on z/OS?)
    ... the "right" way to charge more IMHO is to charge ... Someone, either the software vendor or the customer, is ... How to account for the transactions in a non-intrusive, ...
    (bit.listserv.ibm-main)
  • Senate Housing Bill Requires eBay, Amazon, Google, and All Credit Card
    ... Senate Housing Bill Requires eBay, Amazon, Google, and All Credit Card ... Companies to Report Transactions to the Government ... this week, would require the nation's payment systems to track, ...
    (alt.marketing.online.ebay)
  • Re: Use of Table Datatype instead of Temp Tables or Cursor
    ... I don't see why you need a table variable, temp table or cursor. ... >I am working on a customer scoring application within a customer data ... > transactions each. ...
    (microsoft.public.sqlserver.programming)