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:
@ -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):
|
||||
|
Reference in New Issue
Block a user