[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Decrement Inventory Question
****** message to minivend-users from Handytman@aol.com ******
In a message dated 8/8/00 9:19:13 AM Eastern Daylight Time,
support@mediaservices.net writes:
> 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)
You're in the right page, receipt.html. I have the same thing in mine *almost*
At the top of the page I have:
[tag flag write]inventory[/tag]
[tag touch inventory][/tag]
And my actual code is:
[data inventory qty [item-code] -[item-quantity] decrement]
because my inventory is tracked in a separate table called "inventory.asc"
rather than in products as yours appears to be.
-Rob Maurer
-
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