Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When to Normalize?
Message
De
18/10/1999 11:14:24
 
 
À
18/10/1999 11:10:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00277580
Message ID:
00277686
Vues:
24
Unless you can guarantee a 1-1 ratio of a payment to an invoice, it's better to have payment information in a separate table. Let me give you a scenario: Suppose you receive a partial payment for the invoice? And then, down the road, get another payment that pays the original invoice in full and pays part or all of another invoice?


>I guess I misunderstood you, I am keeping track of the payment info, but have it in the same parent table. The question was why it would be better to keep the payment info in a second child table?
>
>>Oh, OK.
>>
>>For audit purposes, I would consider tracking the payments date, amount, and invoice applied to in a separate table.
>>
>>
>>>Hi John,
>>>
>>>In this app I'm simply applying the payment torwards the balance.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform