ShoppinPal / vend-tools

A command-line-interface (CLI) which allows you to easily perform custom tasks for your vendhq.com instance
http://shoppinpal.github.io/vend-tools/
GNU General Public License v2.0
3 stars 3 forks source link

Update restock levels to match order levels #25

Open pulkitsinghal opened 9 years ago

pulkitsinghal commented 9 years ago

@DivisionVapor wants this done

pulkitsinghal commented 9 years ago

Some background:

  1. reorder_point is the level stock must get to before Vend identifies it as 'low stock'

  2. restock_level is the amount of stock to automatically reorder

  3. Right now
 if product.inventory.restock_level==0
 it is treated as a discontinued product

If a generate order report is about to order 30 more units of a product then the restock_level should be set to 30 and the reorder_point should be 29 in vend via an API call.

This feature should be optional, meaning someone has to say they want it in the original cmd-line prompts when starting the script, otherwise it should not kick-in.

pulkitsinghal commented 9 years ago
pulkitsinghal commented 9 years ago

@DivisionVapor and @MeghaY - please make sure to decide if any extra intelligence is required when the stock being ordered based on sales data is 1 or 0 ... because that means that the product gets set to: a) reorder_point: 0 and restock_level: 1 b) reorder_point: -1 and restock_level: 0