Accounts Items --------------- --------------- iID Integer iID Integer cName Char(35) cDesc Char(35)Opening Amount/Qty. tables for each and every company. Assuming there are 1 parent + 4 children companies, each of the 5 have 100 qty. of Op. Stock for ItemA, the parent company when reporting consolidated will show ItemA as 500 qty.
OpAccounts OpItems ---------------- ------------------ iAcctID Integer iItemID Integer nOpBal N(12,2) nOpStock N(12,2)Transaction table(s) for each and every company but these transaction will not only involve outside party accounts and items but will also involve transaction between each other of the parent and children companies
AccountsJV StockJV ---------------------- -------------------- dDate Date dDate Date iDebitAcctID Integer iAddItemID Integer iCreditAcctID Integer iLessItemID Integer nAmount N(12,2) nQty N(12,2)The final app though in VFP6 will be using FireBird as a backend accessing the data via remote views.