MiniVend Akopia Services

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

Saving data with [data ... ] tag embedded in [item-list][/item-list] tag



Hi list,
 
I am trying to update my inventory database (gdbm) with the quantities of items sold. For this purpose I have added the following code in receipt.html:
 
[item-list]
.
(list items and quantities sold)
.
[data base=inventory col=qty key="[item-code]" value="[calc][item-quantity] * -1 [/calc]" op=increment]
[/item-list]
 
The following error shows in catalog error.log:
 
.../vlink/process Runtime Hammered session lock ...
 
and
 
.../vlink/process Runtime error: gdbm store returned -1, errno 2, key "kSAR-1208" at /home/mvend/lib/Vend/Table/GDBM.pm line 216
 
If I place the code outside the [item-list] tag, then it works, however it will obviously not do what I want.
 
Question:
Does the [data ... ] tag not work within the [item-list][/item-list] tag ?
Is there a work around?
 
Thank you.
 
Chris
 

Search for: Match: Format: Sort by: