A
aw
We have 2 area, "Sale" & "Purchase".
For SALE :
==========================
Supplier list
-------------
1 ID (Key)
2 Supplier Code
3 Suppliers
Purchase Contract
-----------------
4 Pur Contract no
5 Supplier code
Purchase Order Tx
-----------------
6 ID (Key-auto no.)
7 Pur Contract no
8 Item Number
9 QTY
10 Unit Cost
relationship setted : 1->5 (1 to many),4->7 (1 to many)
For PURCHASE :
==========================
Customer list
-------------
a ID (Key)
b Customer Code
c Customers
Sale Contract
-----------------
d Sale Contract no
e Customer code
Sale Order Tx
-----------------
f ID (Key-auto no.)
g Sale Contract no
h Item Number
i QTY
j Selling Price
relationship setted : a->e (1 to many), d->g (1 to many)
Remarks :
- Sale & Purchase are alway in 'pair' (no inventory).
- But sale contract number -> Purchase contract number is "1 to many"
relationship.
Questions :
1. How relationship should place (which table) & set (1-many or ..) between
Sale no & Pur Contract no as they should appear in one pair (or 1-many)
2. The best solution to eliminate duplcaite input of '8','9','h' & 'i'
For SALE :
==========================
Supplier list
-------------
1 ID (Key)
2 Supplier Code
3 Suppliers
Purchase Contract
-----------------
4 Pur Contract no
5 Supplier code
Purchase Order Tx
-----------------
6 ID (Key-auto no.)
7 Pur Contract no
8 Item Number
9 QTY
10 Unit Cost
relationship setted : 1->5 (1 to many),4->7 (1 to many)
For PURCHASE :
==========================
Customer list
-------------
a ID (Key)
b Customer Code
c Customers
Sale Contract
-----------------
d Sale Contract no
e Customer code
Sale Order Tx
-----------------
f ID (Key-auto no.)
g Sale Contract no
h Item Number
i QTY
j Selling Price
relationship setted : a->e (1 to many), d->g (1 to many)
Remarks :
- Sale & Purchase are alway in 'pair' (no inventory).
- But sale contract number -> Purchase contract number is "1 to many"
relationship.
Questions :
1. How relationship should place (which table) & set (1-many or ..) between
Sale no & Pur Contract no as they should appear in one pair (or 1-many)
2. The best solution to eliminate duplcaite input of '8','9','h' & 'i'