summaryrefslogtreecommitdiff
path: root/fixco_custom/models/reordering_rule.py
diff options
context:
space:
mode:
Diffstat (limited to 'fixco_custom/models/reordering_rule.py')
-rw-r--r--fixco_custom/models/reordering_rule.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fixco_custom/models/reordering_rule.py b/fixco_custom/models/reordering_rule.py
index e4a4dec..5584f8b 100644
--- a/fixco_custom/models/reordering_rule.py
+++ b/fixco_custom/models/reordering_rule.py
@@ -98,7 +98,8 @@ class ReorderingRule(models.Model):
(
COALESCE(SUM(sq.quantity), 0.0)
+ vmsbm.incoming_qty
- - vmsbm.min_stock
+ - vmsbm.outgoing_qty
+ - vmsbm.buffer_stock
) AS diff_stock,
-- FINAL STOCK STATUS