MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: What does Inventory do ?!!



******    message to minivend-users from Chris =?iso-8859-1?Q?M=FCller?= <cmueller@polinet.ch>     ******

Where do you suggest that this code should go?
The [item-code]  and [item-quantity] tags seem to suggest that it should be placed
within a [item-list] loop. I have tried to add it in the report.html page,
however, I am getting an Runtime error in the catalog file:

gdbm store returned -1, errno 2 key "kxyz" at .../Vend/Table/GDBM.pm line 216

and an error in http.error_log of:
Premature end of script headers: ... cgi-bin/store

Chris

mikeh@minivend.com wrote:

> ******    message to minivend-users from mikeh@minivend.com     ******
>
> Quoting Gideon van Gelder (gideon@swingmaster.nl):
> >
> > Hi everyone,
> >
> > What's the use of the inventory: yes, I know, it's an arbitrary database
> > stating how many items are in stock for each product, but that qty. stays
> > the same, no matter how many items I order.
> >
> > There are a couple of tags on the top of report.html, "touch inventory",
> > "write inventory": what do they do: I don't see anything changing in
> > inventory.asc.
> >
> > Is this the way it's supposed to be or do I have a misconfiguration
> > somewhere ?
> >
>
> I took the decrement out of the demo as it was causing problems
> for some people when they removed the inventory table. The docs should
> tell how to do it, but
>
>     [data   table=inventory
>             column=qty
>             row="[item-code]"
>             value="-[item-quantity]"
>             increment=1
>     ]
>
> Ah yes, the docs are a bit deficient -- no surprise there. 8-)
> In any case, this does an atomic increment of the value.
>
> --
> Mike Heins                          http://www.minivend.com/  ___
>                                     Internet Robotics        |_ _|____
> When the only tool you have is a    131 Willow Lane, Floor 2  | ||  _ \
> hammer, all your problems tend to   Oxford, OH  45056         | || |_) |
> look like nails.                    <mikeh@minivend.com>     |___|  _ <
>  -- Abraham Maslow                  513.523.7621 FAX 7501        |_| \_\
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: