[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Inventory Tracking in Sample
Before you change receipt.html, look at report.html. That's the page that
happens whe Minivend eamils you an order. There, you'll see that inventory is
already handled. However, you are right that the updated (decremented)
inventory doesn't show in products.asc. It's in products.gdbm. To
automatically update products.asc, make sure the following appears at the top
of report.html:
[tag flag write]inventory[/tag]
[tag touch inventory][/tag]
Now, at the end of report.html, place...
[tag export inventory][/tag]
It's been awhile since I did that, but I think that's right. Let me know.
When an order is placed, your inventory.asc file should now be updated to
reflect the changes.
HTH,
Rob Maurer
In a message dated 11/24/99 4:33:00 PM Eastern Standard Time,
lchiriac@ntkcom.com writes:
> ****** message to minivend-users from Liviu Chiriac
<lchiriac@ntkcom.com>
> ******
>
>
> I build the simple demo, and I am trying to understand how tracking
> works. It doesn't seem to work.
>
> I even added the following to receipt.html
> [data inventory qty [item-code] -[item-quantity] decrement]
> to decrement the quantities with how many one orders. But inventory.asc
> does not change at all.
>
> I am running version 3.14-4 - the latest one I just downloaded last
> week.
>
> Do I have to "touch" something? I am quite struggling. I did some
> searches, and there was some talk of a report.html.... but that does not
> have anything about modifying the inventory in it either!.
>
> Am I missing something obvious? Maybe, but I cannot see it... ;-))
>
> Thanks in advance,
> Liviu