2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 03:25:42 +00:00

Tweak the 'on_order' calculation

This commit is contained in:
Oliver Walters
2019-06-10 21:56:50 +10:00
parent 351c5fb7d0
commit 9efdd836f4
2 changed files with 2 additions and 2 deletions

View File

@ -327,7 +327,7 @@ class SupplierPart(models.Model):
if q is None or r is None:
return 0
else:
return q - r
return max(q-r, 0)
def purchase_orders(self):