Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Inventory adjustment issues #34

Open
woodbri opened this issue Mar 5, 2018 · 2 comments
Open

Inventory adjustment issues #34

woodbri opened this issue Mar 5, 2018 · 2 comments
Labels

Comments

@woodbri
Copy link
Collaborator

woodbri commented Mar 5, 2018

Also, say I have a herd that I plan to keep long term, over multiple seasons. But the inventory will
go up/down at various times. How are inventory adjustments handles with respect to dates?

Inventory adjustments happen on logs - so we are technically tracking those changes over time. The grazing plan calculations are only using the "current" inventory, though, so if it changes over time then you should go in and recalculate things. We will need to make this process a little better in the future - and that probably goes hand-in-hand with the projection of weight gain in animals too.

If I go to the Herds -> Manage page I can change the inventory and planned arrival/departure dates,
but this does not capture the idea of inventory adjustments over time and, if I use the same herd in
multiple plans changes here change it for all plans that reference the herd.

Changing the inventory in Herds -> Manage will actually create a new inventory adjustment log - so it is actually tracking the adjustments over time.

However, you're correct that the inventory adjustment will affect the herd in any plan that references it. So if you have an older plan, the inventory will reflect the CURRENT inventory - not the inventory at the time of the plan. This shouldn't be too much of an issue as it is now, because I think we can assume that a plan in the past will have all of it's rotations marked as "done" - so it won't matter. But it would be better if you could see what the inventory WAS at that time - which you can't right now.

So yea - I think this all points to the need to include some kind of visualization of inventory (and weight, and potentially other changes) over time. We are already tracking that information over time, but we the grazing plan UI is only looking at CURRENT values in most cases. So it is mostly a UI effort, I believe. But as we get into it, I'm sure we'll find some other things we need to start tracking as well - and maybe it will be necessary to add some entity revision support.

But maybe not (I would prefer waiting until Drupal 8 to add that if we can, because it will be easier).

@woodbri woodbri added the bug label Mar 5, 2018
@woodbri
Copy link
Collaborator Author

woodbri commented Mar 5, 2018

So the planning part is currently static, ie: you build a plan for the future. We need to factor into that weight changes over time and do not currently do that. In the UI, we need to reflect when an inventory change is occurring and as you mention above the calculations need to adjust for weight and inventory changes through out the plan.

@mstenta
Copy link
Member

mstenta commented Mar 5, 2018

Related: #17

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants