|
From: Klatuu on 18 Jun 2008 10:05 Sorry, Fred, but the concept you propose is much like the one I had to replace. The problem is in accounting and auditing. If you need to audit one dealer's transactions, it is easier to group them if each transaction applies only to one dealer. No, I did not address adjusting inventory. I felt it was out of scope of the OP's question; however, it is worthy of note. And again, with one transaction pre dealer, managing inventory updates is easier. -- Dave Hargis, Microsoft Access MVP "Fred" wrote: > If there were only a few chemicals (like 2 or 3) I would have suggested a > brute force method.....a transaction table with a field for each > dealer/chemical combo. Plus a field for "consumed" and maybe one more for > adjustments. And then each transaction would be a double entry, crediting > one column and debiting one column. A DB pro like Dave would cringe at > this structure, but it has the advantage that you could make a simple report > which totals the columns and gives you current inventory for everything and > everybody in one pass. > > Dave's solution is more elegant from a DB design point, but, unless I missed > something, he didn't cover the hard part which is how to get the transaction > records to modify the inventory records. > > > > "A.Finnegan" wrote: > > > I was beginning to think this was going to take multiple transaction types. > > The transfer ID is a very helpful idea. That definitely makes things a lot > > clearer. In response to fred, I only need to know how much a dealer has > > given me (i.e. sitting on the floor in my hangar.) Then I need to keep track > > of how much of each dealer's chemicals I have, how much I sprayed that day, > > and how much I transfered between dealers. Then after a couple of reports, > > I'm finished. The amount of information I need to database is minimal. it is > > more solving the transfer issue in as few steps as possible so the front-end > > user can record additions, deductions and transfers to our chemical supply > > quickly. > > Thanks for both responses! > > > > "Klatuu" wrote: > > > > > I did this once a long time ago for a city's shared inventory system. For > > > example, Parks and Recreation has 100 feet of pipe and Streets has 50 feet of > > > pipe. Streets needs to install 80 feet of pipe. This takes 3 transactions. > > > 1. Deduct 30 feet from Parks and Recreation > > > Transaction Type Transfer Out. > > > Transfer Number 30002 (to tie the in and out together for > > > accounting/audit) > > > 2. Add 30 feet to Streets > > > Transaction Type Transfer In. > > > Transfer Number 30002 (to tie the in and out together for > > > accounting/audit) > > > 3. Deduct 80 feet from Street > > > Transaction Type Consumed > > > > > > So each transaction applies to a specific vendor. To do a transer takes two > > > transactions, one for out and one for in. Each Transaction needs a type. > > > Received, Consumed, Destroyed, Returned, Transfered Out, Transfered In, etc. > > > When you do a transfer, you need a field to tie the two transactions > > > together for accounting, audit, and tracking purposes. > > > > > > Although you may have 500 gallons of a product sitting on the floor, you > > > should not carry that as one quantity in inventory. You carry the quantity > > > in inventory by dealer. Your table structure should, however, allow you to > > > be able to know the total inventory of the product. So you need something > > > like > > > ProductID > > > DealerID > > > QtyOnHand > > > > > > -- > > > Dave Hargis, Microsoft Access MVP > > > > > > > > > "A.Finnegan" wrote: > > > > > > > I am attempting to create a database that will mainly handle transfers of > > > > materials between dealers. This is an aerial application business, so > > > > dealers bring us chemicals that we apply on crops. Dealers are responsible > > > > for providing us with the correct amount of chemicals for the fields they > > > > need sprayed. We can't always use their specific chemical. All of our 15 or > > > > so dealers bring the same chemicals, so we often use one dealer's chemical on > > > > another's field. I need to keep track of this debit/credit system, so I > > > > always know who owes who what. I am having trouble implementing this idea > > > > into Access so any transaction or transfer will deduct and add the chemical > > > > to the dealers involved in the transfer. > > > > Basically like this: > > > > Dealer A transfers 40 gallons of chemical Z to Dealer B. Both Dealers had > > > > 60 gallons of chemical Z sprayed for the day. > > > > At the beginning of the day Dealer A had 120 gallons, Dealer B had 50. > > > > So, after all is said and done, Dealer A should have 20 gallons, Dealer B > > > > should have 30. > > > > I need a way to keep track of the transfer and the amount sprayed for each > > > > day. > > > > Any thoughts and suggestions would be much appreciated.
First
|
Prev
|
Pages: 1 2 Prev: Convert Dates in Text Field to Date Field Next: Wanted: help with minimal ADO.NET in VS 2008 |