ok, i will try to explain,
I build in access DB to my parent company,
its Steel Company.
my tables are(Not Full but the importent stuff is in):
TblProudcts -
ProductID|Type|Subtype|Weight
-
----1-----Iron--Steel----5
-
----2-----Iron--Wood-----6.7
-
----3-----Gold--Dark-----55
-
TblCustomer -
CustomerID|Name|-------Phone|
-
----1------Moshe LTD---54545
-
----2------Iron LTD---45455
-
----3------Gold LTD---45454
-
TblSuppliers -
SupplierID|Name|----Phone|
-
----1------NY LTD---54545
-
----2------Ir LTD---45455
-
----3------Go LTD---45454
-
Tblproject -
ProjectID---ProjectName---CustomerID(FK)-----DateStart-----DateEnd
-
---3000-----Wall of steel-----2-------------28/01/2017--31/01/2017
-
---3001-----Iron Sky----------3-------------29/01/2017--31/02/2019
-
TblBID -
--BidID--SupplierID(FK)--ProjectID(FK)------Date--
-
--1200------4---------------3000-------28/01/2017
-
TblBidDetails - --BiddetailsID--BidID(FK)--ProductID(FK)--Quantity--Weight--Price
-
-------1--------1200--------1--------------3---------5-------5$--
-
-------2--------1200--------37-------------5---------35------10$-
TblOrder -
--OrderID--SupplierID(FK)--ProjectID(FK)------Date---BidID(Linked)
-
--4700--------4----------------3000-------28/01/2017--1200--------
TblOrderDetails -
orderdetailsID--OrderID(FK)-ProductID(FK)--Quantity--Weight-Price
-
-------1--------4700--------1--------------3---------5-------5$--
-
-------2--------4700--------37-------------5---------35------10$-
TblCerM-When i Recive the order i need to create shipping certificate
-
--CerMID--SupplierID(FK)--ProjectID(FK)-----Date---OrderID(Linked)
-
--9700--------4----------------3000-----28/01/2017--4700--------
TblCermDetails -
CermdetailsID--CermID(FK)-ProductID(FK)--Quantity--Weight-Price
-
-------1--------9700--------1--------------3---------5-------5$--
-
-------2--------9700--------37-------------5---------35------10$-
TblInvoice -
--InvoiceID---Date-------Total-
-
--13000-------28/01/2017--5870$
-
TblInvoiceDetails - --InvoiceDetailsID--CermID-OrderID--Total.
-
-------------1------9700---4700-----50$
So this is how thay work:
Thay Create a project, Give it a name.
now thay need to Order Products from suppliers so thay make a
Bid and enter the Proudcts thay need. after that thay send the bid to the suplier and get back the supplier Bid to the items they ask with prices.
now thay create in
Order thay "Link the Bid to the order" and all the items that in the bid Auto insert into the order Form.
Thay Create the order and send it to the suplier, now thay will recive the Proudcts in parts. 30% of the order and the rest is 70% of the order will arrive the day after or so.
they recive it with a
CerM Doucment.
now thay go to the Project and open a new CerM, thay link the order to the Cerm and all the items that in the Order Auto insert into the Cerm Form.
But.. only 30% of the order is arrive. so i need to make in option to change the CerM, and he will know that.
now when i open a new Cerm and link the Order he will show me only the 70% Left.
after that in the end of the mounth i create
invoice
in the invoice i can add CerM and Orders
when i add Cerm he will know that 3 more Cerm is linked to the Same Order as the first Cerm. and he will ask me if i want to add the rest of the Cerm, and if i have order with lets say 30% with out CerM he will tell me that Order didnt arrive Complletly do you want to Procced?
lets start with that i think its inaf.
by the why i need the proudcts to add as a casacde combobox, i pick type and then pick subtype(Filterdform the type) and then he will add the Weight Auto.
Thank you!