Hi all,
I am modifying the stock control basing in the inventory api contrib. I have a stocklevels modification that uses the uc_product_stock table (for sync with the official stock purposes) and controls the stock (TR has a copy of this modification), but I've noticed that when an order is modified or created by a admin (admin/store/orders/__/edit), there are some actions that aren't under stock control:
- add items to the list
- remove items from the list, using the ajax remove button or the remove check of the form
I've modified the uc_order module for including this stock updates where necessary, basically I've added calls to the uc_stocklevels_adjust_stock function in all these places.
Any suggestion for improving my solution are appreciated
(attached is a cvs diff of the module)
Thanks!
| Attachment | Size |
|---|---|
| diff_uc_order.diff | 1005 bytes |



or at least, I could not find it!
Joined: 01/23/2008