S
SF
I have develop a small database that would assist me in maintaining a
small shop. I have 4 tables that seem to work perfectly
tblItems
ItemID Number (PK)
ItemDescription Text
SalePrice Currency
...
tblContacts
ContactID
ContactNames
ContactAddress
...
tblTransactions
TransactionID
TransactionDate
TransactionNumber
ContactID
TransactionType (Purchase, Sale, Return Product)
tblTransactionDetails
TransactionID (FK)
ItemID (FK)
Qty
SalePrice
The above 4 tables would help me to maintain inventory. my problem is
how to track payments from each Costumer since the process of payment
are as follow:
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)
tblPayments
PaymentID (PK)
PaymentDate Date/Time
ContactID (FK)
PaymentAmount Currency
tblPaymentDetails
PaymentID (FK)
TransactionID (FK)
AmountPaid Currency
Hope the NG would advice.
SF
small shop. I have 4 tables that seem to work perfectly
tblItems
ItemID Number (PK)
ItemDescription Text
SalePrice Currency
...
tblContacts
ContactID
ContactNames
ContactAddress
...
tblTransactions
TransactionID
TransactionDate
TransactionNumber
ContactID
TransactionType (Purchase, Sale, Return Product)
tblTransactionDetails
TransactionID (FK)
ItemID (FK)
Qty
SalePrice
The above 4 tables would help me to maintain inventory. my problem is
how to track payments from each Costumer since the process of payment
are as follow:
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)
tblPayments
PaymentID (PK)
PaymentDate Date/Time
ContactID (FK)
PaymentAmount Currency
tblPaymentDetails
PaymentID (FK)
TransactionID (FK)
AmountPaid Currency
Hope the NG would advice.
SF