Inventory Reset

ok, good news @lin_d_hop - @oeoeaio and I reckon we have a pretty manageable way forward with this. yay. Have a look and see what you think, and whether you want to do this or alternatively we could get @maikel started on it . .

The key to it making sense to do it this way, is that we have a general plan to move more functionality into the VO page as an ‘inventory management’ page, where Users can easily manage which products and variants they actually want to work with (which is often NOT everything the producer has available). Will write this up properly

but in the meantime, perhaps all we need is

  • a new field in variant overrides page for ‘reset level’
  • a button / function that resets ‘on hand’ to the amount in the ‘reset’ field
  • the VO ‘on hand’ levels already override the underlying product ones so these will be the levels then reflected in the shopfront for the hub
  • function called manually for now, but then once is working we can work out where else / when to activate it from (e.g. when opening a new order cycle)

[Note to self . . Q: is there any reason we would want to have the inventory levels set at the order cycle rather than the Hub? Only if we want each outgoing Hub to draw from same inventory, but then we can just set that in OC ‘draw from Coord inventory’]