Hi
The quantity will probably be an attribute on 'type'. I'm not sure
it'll make it all the way to the database, though. It might just be a
query. The main reason I think this is how we'll end up is because the
total quantity seem to be important only when you want to create a
list of things you own.
For day to day transactions, quantity is always dependent on the date.
Today I might have 10 MacBook Pros. Two weeks from now I might have
none. The total quantity is 20.
It's possible though that it will end up in the database as a field on
type for performance reasons.
Cheers
Jerome
On Mar 14, 2008, at 3:58 PM, Ramon Cahenzli wrote:
Hi Kathleen,
I hope you don't mind if I reply back to list, as perhaps others are
wondering about this too.
I was trying to figure out if the item record has a quantity? What
happens when you have qty=10 NEC LT 245's at the same location?
We don't have that part sketched yet, but it looks like items can't
have a
quantity. Because each item has unique attributes (serial number,
date of
purchase, purchase price etc.) we will have to deal with items on
bit-by-bit basis and simply count them when we determine how many of
them
are available when.
Also, think of the situation when one inventory pool gives items to
another inventory pool. Then having quantities attached to items
would be
in the way. We just had such a situation when several laptops from a
research project were no longer needed because the project had
ended. They
were donated into our common pool of laptops to borrow -- such a
switch is
easy if we work on a "line-by-line" level and give each item its own
identity and relationships.
A lot of brains will go into the item and type models, as they will
have
to know about their own availability etc., so this type of
functionality
will probably be all inside the models. As soon as we get to work on
those
models, things will become clearer.
Cheers,
Ramon
___
leihs-dev mailing list
leihs-dev@services.zhdk.ch
http://services.zhdk.ch/cgi-bin/mailman/listinfo/leihs-dev
___
leihs-dev mailing list
leihs-dev@services.zhdk.ch
http://services.zhdk.ch/cgi-bin/mailman/listinfo/leihs-dev