[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Decrement Inventory Question
****** message to minivend-users from Chris Rapier <rapier@psc.edu> ******
Mediaservices wrote:
>
Russ, do you have the correct write permisisons set on the database?
This is setup in the catalog.cfg file.
Database products WRITE_CONTROL 1
Database products WRITE_ALWAYS 1
(not the most secure solution though, there are alternatives which will
probably suit you better but this is an easy way to check).
> ****** message to minivend-users from "Mediaservices" <support@mediaservices.net> ******
>
> Hello,
>
> Stumped here. I get from searching the mail archives that the following code
> will decrement the current inventory of an item when purchased.
>
> [data table=products
> column=quantity
> row="[item-code]"
> value="-[item-quantity]"
> increment=1
> ]
>
> I placed this code within the report.html but the product quantity does not
> decrease when a purchase is made. Is this code correct and do I have it in
> the correct place (in report.html) or should it be in the multi/final.html
> page?
>
> I use MV 4.04a (not using SQL, but the built in DB)
-
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