Available quantities submodule should calculate weighted average price. #32
Labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-thirtybees/statsmodule#32
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Current code:
avg = (Σ unit_cost_i) / (# of products)
Fix:
avg = (Σ qty_i * unit_cost_i) / (Σ qty_i)
Which more accurately represents the actual case.