mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Remove some debug messages and fix PIP
This commit is contained in:
parent
77471cb89c
commit
ba1d2063af
@ -458,13 +458,11 @@ class SalesOrderLineItem(OrderLineItem):
|
||||
return query['allocated']
|
||||
|
||||
def is_fully_allocated(self):
|
||||
print("Line:", self.pk)
|
||||
print("Allocated:", self.allocated_quantity())
|
||||
print("Quantity:", self.quantity)
|
||||
|
||||
""" Return True if this line item is fully allocated """
|
||||
return self.allocated_quantity() >= self.quantity
|
||||
|
||||
def is_over_allocated(self):
|
||||
""" Return True if this line item is over allocated """
|
||||
return self.allocated_quantity() > self.quantity
|
||||
|
||||
|
||||
|
@ -416,7 +416,6 @@ class SalesOrderCancel(AjaxUpdateView):
|
||||
else:
|
||||
valid = True
|
||||
|
||||
|
||||
if valid:
|
||||
if not order.cancel_order():
|
||||
form.non_field_errors = [_('Could not cancel order')]
|
||||
@ -498,7 +497,6 @@ class PurchaseOrderComplete(AjaxUpdateView):
|
||||
return self.renderJsonResponse(request, form, data)
|
||||
|
||||
|
||||
|
||||
class SalesOrderShip(AjaxUpdateView):
|
||||
""" View for 'shipping' a SalesOrder """
|
||||
form_class = order_forms.ShipSalesOrderForm
|
||||
|
Loading…
Reference in New Issue
Block a user