Update stock status calculations and add restock/overstock qty fields and calculations

This commit is contained in:
2025-01-15 13:45:55 -05:00
parent 12532d4f6f
commit 6b9fdcb162
7 changed files with 211 additions and 145 deletions

View File

@@ -39,6 +39,8 @@ CREATE TABLE IF NOT EXISTS product_metrics (
weeks_of_inventory INT,
reorder_point INT,
safety_stock INT,
reorder_qty INT DEFAULT 0,
overstocked_amt INT DEFAULT 0,
-- Financial metrics
avg_margin_percent DECIMAL(10,3),
total_revenue DECIMAL(10,3),