Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table Struct. Suggestions: One/Many to One (Tracked - Qt
Message
From
15/05/2003 15:40:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00788207
Message ID:
00788974
Views:
24
>Yes I have outlined my concept and if the tables I propose are okay or do they require any changes from your experiences.

In general, it looks OK.

Like you, I also use fields of type "Currency" for quantities - but make sure that you won't need more than 4 decimals. Otherwise, you may want to use type "Double". In computations with Currency, all results are converted to Currency - which may give you some rounding errors. This can be avoided using mton() in strategic places.

Isn't the invoice related to a sales order? I have the impression you are missing a FK to the related sales order, in the invoice header.

Otherwise - just ask again if you have specific design questions, which you are not sure how best to solve.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform