mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 02:41:21 +00:00
Cleanup pricing algorithms
This commit is contained in:
1 parent
8adb4f6c20
commit
6ae48d07c4
3 files changed
+71
-139
No files matched your search
@@ -250,7 +250,7 @@ class SupplierPart(models.Model):
|
||||
- If order multiples are to be observed, then we need to calculate based on that, too
|
||||
"""
|
||||
|
||||
price_breaks = self.price_breaks.all()
|
||||
price_breaks = self.price_breaks.filter(quantity__lte=quantity)
|
||||
|
||||
# No price break information available?
|
||||
if len(price_breaks) == 0:
|
||||
|
||||
Reference in new issue
Block a user